java.lang.Object
org.apache.arrow.vector.ipc.ArrowReader
org.apache.arrow.adapter.orc.OrcStripeReader
- All Implemented Interfaces:
AutoCloseable,DictionaryProvider
Orc stripe that load data into ArrowRecordBatch.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.arrow.vector.dictionary.DictionaryProvider
DictionaryProvider.MapDictionaryProvider -
Field Summary
Fields inherited from class org.apache.arrow.vector.ipc.ArrowReader
allocator, dictionaries -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the number of bytes read from the ReadChannel.protected voidClose the underlying read source.booleanLoad the next ArrowRecordBatch to the vector schema root if available.protected SchemaRead the Schema from the source, will be invoked at the beginning the initialization.Methods inherited from class org.apache.arrow.vector.ipc.ArrowReader
close, close, ensureInitialized, getDictionaryIds, getDictionaryVectors, getVectorSchemaRoot, initialize, loadDictionary, loadRecordBatch, lookup, prepareLoadNextBatch
-
Method Details
-
loadNextBatch
Description copied from class:ArrowReaderLoad the next ArrowRecordBatch to the vector schema root if available.- Specified by:
loadNextBatchin classArrowReader- Returns:
- true if a batch was read, false on EOS
- Throws:
IOException- on error
-
bytesRead
public long bytesRead()Description copied from class:ArrowReaderReturn the number of bytes read from the ReadChannel.- Specified by:
bytesReadin classArrowReader- Returns:
- number of bytes read
-
closeReadSource
Description copied from class:ArrowReaderClose the underlying read source.- Specified by:
closeReadSourcein classArrowReader- Throws:
IOException- on error
-
readSchema
Description copied from class:ArrowReaderRead the Schema from the source, will be invoked at the beginning the initialization.- Specified by:
readSchemain classArrowReader- Returns:
- the read Schema
- Throws:
IOException- on error
-