public class ArrowFileReader extends ArrowReader
DictionaryProvider.MapDictionaryProviderallocator| 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, prepareLoadNextBatchpublic ArrowFileReader(SeekableReadChannel in, BufferAllocator allocator)
public ArrowFileReader(SeekableByteChannel in, BufferAllocator allocator)
public long bytesRead()
ArrowReaderbytesRead in class ArrowReaderprotected void closeReadSource()
throws IOException
ArrowReadercloseReadSource in class ArrowReaderIOExceptionprotected Schema readSchema() throws IOException
ArrowReaderreadSchema in class ArrowReaderIOExceptionpublic ArrowDictionaryBatch readDictionary() throws IOException
ArrowReaderreadDictionary in class ArrowReaderIOExceptionpublic boolean loadNextBatch()
throws IOException
ArrowReaderloadNextBatch in class ArrowReaderIOExceptionpublic List<ArrowBlock> getDictionaryBlocks() throws IOException
IOExceptionpublic List<ArrowBlock> getRecordBlocks() throws IOException
IOExceptionpublic boolean loadRecordBatch(ArrowBlock block) throws IOException
IOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.