public class JsonFileReader extends Object implements AutoCloseable, DictionaryProvider
DictionaryProvider.MapDictionaryProvider| Constructor and Description |
|---|
JsonFileReader(File inputFile,
BufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Dictionary |
lookup(long id) |
VectorSchemaRoot |
read() |
boolean |
read(VectorSchemaRoot root) |
Schema |
start() |
public JsonFileReader(File inputFile, BufferAllocator allocator) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseExceptionIOExceptionpublic Dictionary lookup(long id)
lookup in interface DictionaryProviderpublic Schema start() throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseExceptionIOExceptionpublic boolean read(VectorSchemaRoot root) throws IOException
IOExceptionpublic VectorSchemaRoot read() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.