@Namespace(value="arrow::ipc") @NoOffset @Properties(inherit=arrow.class) public class StreamDecoder extends Pointer
https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-formatPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
StreamDecoder(Listener listener) |
StreamDecoder(Listener listener,
IpcReadOptions options)
\brief Construct a stream decoder.
|
StreamDecoder(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Consume(ArrowBuffer buffer)
\brief Feed data to the decoder as a Buffer.
|
Status |
Consume(byte[] data,
long size) |
Status |
Consume(ByteBuffer data,
long size) |
Status |
Consume(BytePointer data,
long size)
\brief Feed data to the decoder as a raw data.
|
long |
next_required_size()
\brief Return the number of bytes needed to advance the state of
the decoder.
|
Schema |
schema() |
ReadStats |
stats()
\brief Return current read statistics
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic StreamDecoder(Pointer p)
Pointer(Pointer).public StreamDecoder(@SharedPtr Listener listener, @ByVal(nullValue="arrow::ipc::IpcReadOptions::Defaults()") IpcReadOptions options)
listener - [in] a Listener that must implement
Listener::OnRecordBatchDecoded() to receive decoded record batchesoptions - [in] any IPC reading options (optional)public StreamDecoder(@SharedPtr Listener listener)
@ByVal public Status Consume(@Cast(value="const uint8_t*") BytePointer data, @Cast(value="int64_t") long size)
data - [in] a raw data to be processed. This data isn't
copied. The passed memory must be kept alive through record
batch processing.size - [in] raw data size.@ByVal public Status Consume(@Cast(value="const uint8_t*") ByteBuffer data, @Cast(value="int64_t") long size)
@ByVal public Status Consume(@Cast(value="const uint8_t*") byte[] data, @Cast(value="int64_t") long size)
@ByVal public Status Consume(@SharedPtr ArrowBuffer buffer)
buffer - [in] a Buffer to be processed.@SharedPtr @ByVal public Schema schema()
@Cast(value="int64_t") public long next_required_size()
Copyright © 2021. All rights reserved.