public class ArrowStreamReader extends ArrowReader
DictionaryProvider.MapDictionaryProvider
allocator
コンストラクタと説明 |
---|
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, prepareLoadNextBatch
public 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
クラス内 ArrowReader
protected void closeReadSource() throws IOException
closeReadSource
クラス内 ArrowReader
IOException
public boolean loadNextBatch() throws IOException
loadNextBatch
クラス内 ArrowReader
IOException
protected Schema readSchema() throws IOException
readSchema
クラス内 ArrowReader
IOException
protected ArrowDictionaryBatch readDictionary() throws IOException
readDictionary
クラス内 ArrowReader
IOException
Copyright © 2018 The Apache Software Foundation. All rights reserved.