public class ArrowBatchReusedReader extends Object implements ArrowReader
| Constructor and Description |
|---|
ArrowBatchReusedReader(InputStream is,
org.apache.arrow.memory.BufferAllocator allocator) |
ArrowBatchReusedReader(InputStream is,
org.apache.arrow.memory.BufferAllocator allocator,
org.apache.arrow.vector.compression.CompressionCodec.Factory compressionFactory) |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesRead()
Return the current read bytes.
|
void |
close() |
org.apache.arrow.vector.VectorSchemaRoot |
getCurrentValue()
Return the current arrow batch.
|
boolean |
nextBatch()
Proceed to next arrow batch, returns false if there is no more batches.
|
public ArrowBatchReusedReader(InputStream is, org.apache.arrow.memory.BufferAllocator allocator)
public ArrowBatchReusedReader(InputStream is, org.apache.arrow.memory.BufferAllocator allocator, org.apache.arrow.vector.compression.CompressionCodec.Factory compressionFactory)
public org.apache.arrow.vector.VectorSchemaRoot getCurrentValue()
ArrowReadergetCurrentValue in interface ArrowReaderpublic boolean nextBatch()
throws IOException
ArrowReadernextBatch in interface ArrowReaderIOException - if failure happens during network IO.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long bytesRead()
ArrowReaderbytesRead in interface ArrowReaderCopyright © 2024 Alibaba Cloud Computing. All rights reserved.