public class ArrowFileReader extends ArrowReader
DictionaryProvider.MapDictionaryProviderallocator| コンストラクタと説明 |
|---|
ArrowFileReader(SeekableByteChannel in,
BufferAllocator allocator) |
ArrowFileReader(SeekableReadChannel in,
BufferAllocator allocator) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 クラス内 ArrowReaderprotected void closeReadSource()
throws IOException
ArrowReadercloseReadSource クラス内 ArrowReaderIOExceptionprotected Schema readSchema() throws IOException
ArrowReaderreadSchema クラス内 ArrowReaderIOExceptionpublic ArrowDictionaryBatch readDictionary() throws IOException
ArrowReaderreadDictionary クラス内 ArrowReaderIOExceptionpublic boolean loadNextBatch()
throws IOException
ArrowReaderloadNextBatch クラス内 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.