public class ArrowStreamReader extends ArrowReader
DictionaryProvider.MapDictionaryProviderallocator| コンストラクタと説明 |
|---|
ArrowStreamReader(InputStream in,
BufferAllocator allocator)
Constructs a streaming reader from an InputStream.
|
ArrowStreamReader(MessageChannelReader messageReader,
BufferAllocator allocator)
Constructs a streaming reader using a MessageChannelReader.
|
ArrowStreamReader(ReadableByteChannel in,
BufferAllocator allocator)
Constructs a streaming reader from a ReadableByteChannel input.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
long |
bytesRead()
Get the number of bytes read from the stream since constructing the reader.
|
protected void |
closeReadSource()
Closes the underlying read source.
|
boolean |
loadNextBatch()
Load the next ArrowRecordBatch to the vector schema root if available.
|
protected ArrowDictionaryBatch |
readDictionary()
Read a dictionary batch message, will be invoked after the schema and before normal record
batches are read.
|
protected Schema |
readSchema()
Reads the schema message from the beginning of the stream.
|
close, close, ensureInitialized, getDictionaryVectors, getVectorSchemaRoot, loadDictionary, loadRecordBatch, lookup, prepareLoadNextBatchpublic ArrowStreamReader(MessageChannelReader messageReader, BufferAllocator allocator)
messageReader - reader used to get messages from a ReadChannelallocator - to allocate new bufferspublic ArrowStreamReader(ReadableByteChannel in, BufferAllocator allocator)
in - ReadableByteChannel to read messages fromallocator - to allocate new bufferspublic ArrowStreamReader(InputStream in, BufferAllocator allocator)
in - InputStream to read messages fromallocator - to allocate new bufferspublic long bytesRead()
bytesRead クラス内 ArrowReaderprotected void closeReadSource()
throws IOException
closeReadSource クラス内 ArrowReaderIOExceptionpublic boolean loadNextBatch()
throws IOException
loadNextBatch クラス内 ArrowReaderIOExceptionprotected Schema readSchema() throws IOException
readSchema クラス内 ArrowReaderIOExceptionprotected ArrowDictionaryBatch readDictionary() throws IOException
readDictionary クラス内 ArrowReaderIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.