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 TypeMethodDescriptionlong
Return the number of bytes read from the ReadChannel.protected void
Close the underlying read source.boolean
Load the next ArrowRecordBatch to the vector schema root if available.protected Schema
Read 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:ArrowReader
Load the next ArrowRecordBatch to the vector schema root if available.- Specified by:
loadNextBatch
in classArrowReader
- Returns:
- true if a batch was read, false on EOS
- Throws:
IOException
- on error
-
bytesRead
public long bytesRead()Description copied from class:ArrowReader
Return the number of bytes read from the ReadChannel.- Specified by:
bytesRead
in classArrowReader
- Returns:
- number of bytes read
-
closeReadSource
Description copied from class:ArrowReader
Close the underlying read source.- Specified by:
closeReadSource
in classArrowReader
- Throws:
IOException
- on error
-
readSchema
Description copied from class:ArrowReader
Read the Schema from the source, will be invoked at the beginning the initialization.- Specified by:
readSchema
in classArrowReader
- Returns:
- the read Schema
- Throws:
IOException
- on error
-