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.JsonParseException
IOException
public Dictionary lookup(long id)
lookup
in interface DictionaryProvider
public Schema start() throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
public boolean read(VectorSchemaRoot root) throws IOException
IOException
public VectorSchemaRoot read() throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.