java.lang.Object
org.apache.arrow.vector.ipc.ArrowReader
org.apache.arrow.dataset.scanner.ArrowScannerReader
- All Implemented Interfaces:
AutoCloseable,DictionaryProvider
An implementation of
ArrowReader that reads the dataset from Scanner.-
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 -
Constructor Summary
ConstructorsConstructorDescriptionArrowScannerReader(Scanner scanner, BufferAllocator allocator) Constructs a scanner reader using a Scanner. -
Method Summary
Modifier and TypeMethodDescriptionlongprotected voidprotected voidloadDictionary(ArrowDictionaryBatch dictionaryBatch) booleanprotected voidloadRecordBatch(ArrowRecordBatch batch) protected SchemaMethods inherited from class org.apache.arrow.vector.ipc.ArrowReader
close, close, ensureInitialized, getDictionaryIds, getDictionaryVectors, getVectorSchemaRoot, initialize, lookup, prepareLoadNextBatch
-
Constructor Details
-
ArrowScannerReader
Constructs a scanner reader using a Scanner.- Parameters:
scanner- scanning data over datasetallocator- to allocate new buffers
-
-
Method Details
-
loadRecordBatch
- Overrides:
loadRecordBatchin classArrowReader
-
loadDictionary
- Overrides:
loadDictionaryin classArrowReader
-
loadNextBatch
- Specified by:
loadNextBatchin classArrowReader- Throws:
IOException
-
bytesRead
public long bytesRead()- Specified by:
bytesReadin classArrowReader
-
closeReadSource
- Specified by:
closeReadSourcein classArrowReader- Throws:
IOException
-
readSchema
- Specified by:
readSchemain classArrowReader- Throws:
IOException
-