public class ArrowScannerReader extends ArrowReader
ArrowReader that reads
the dataset from Scanner.DictionaryProvider.MapDictionaryProviderallocator, dictionaries| Constructor and Description |
|---|
ArrowScannerReader(Scanner scanner,
BufferAllocator allocator)
Constructs a scanner reader using a Scanner.
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytesRead() |
protected void |
closeReadSource() |
protected void |
loadDictionary(ArrowDictionaryBatch dictionaryBatch) |
boolean |
loadNextBatch() |
protected void |
loadRecordBatch(ArrowRecordBatch batch) |
protected Schema |
readSchema() |
close, close, ensureInitialized, getDictionaryIds, getDictionaryVectors, getVectorSchemaRoot, initialize, lookup, prepareLoadNextBatchpublic ArrowScannerReader(Scanner scanner, BufferAllocator allocator)
scanner - scanning data over datasetallocator - to allocate new buffersprotected void loadRecordBatch(ArrowRecordBatch batch)
loadRecordBatch in class ArrowReaderprotected void loadDictionary(ArrowDictionaryBatch dictionaryBatch)
loadDictionary in class ArrowReaderpublic boolean loadNextBatch()
throws IOException
loadNextBatch in class ArrowReaderIOExceptionpublic long bytesRead()
bytesRead in class ArrowReaderprotected void closeReadSource()
throws IOException
closeReadSource in class ArrowReaderIOExceptionprotected Schema readSchema() throws IOException
readSchema in class ArrowReaderIOExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.