public class ArrowFileReader extends ArrowReader
DictionaryProvider.MapDictionaryProvider
allocator
Constructor and Description |
---|
ArrowFileReader(SeekableByteChannel in,
BufferAllocator allocator) |
ArrowFileReader(SeekableReadChannel in,
BufferAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
long |
bytesRead()
Return the number of bytes read from the ReadChannel.
|
protected void |
closeReadSource()
Close the underlying read source.
|
List<ArrowBlock> |
getDictionaryBlocks() |
List<ArrowBlock> |
getRecordBlocks() |
boolean |
loadNextBatch()
Load the next ArrowRecordBatch to the vector schema root if available.
|
boolean |
loadRecordBatch(ArrowBlock block) |
ArrowDictionaryBatch |
readDictionary()
Read a dictionary batch from the source, will be invoked after the schema has been read and
called N times, where N is the number of dictionaries indicated by the schema Fields.
|
protected Schema |
readSchema()
Read the Schema from the source, will be invoked at the beginning the initialization.
|
close, close, ensureInitialized, getDictionaryVectors, getVectorSchemaRoot, loadDictionary, loadRecordBatch, lookup, prepareLoadNextBatch
public ArrowFileReader(SeekableReadChannel in, BufferAllocator allocator)
public ArrowFileReader(SeekableByteChannel in, BufferAllocator allocator)
public long bytesRead()
ArrowReader
bytesRead
in class ArrowReader
protected void closeReadSource() throws IOException
ArrowReader
closeReadSource
in class ArrowReader
IOException
protected Schema readSchema() throws IOException
ArrowReader
readSchema
in class ArrowReader
IOException
public ArrowDictionaryBatch readDictionary() throws IOException
ArrowReader
readDictionary
in class ArrowReader
IOException
public boolean loadNextBatch() throws IOException
ArrowReader
loadNextBatch
in class ArrowReader
IOException
public List<ArrowBlock> getDictionaryBlocks() throws IOException
IOException
public List<ArrowBlock> getRecordBlocks() throws IOException
IOException
public boolean loadRecordBatch(ArrowBlock block) throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.