@Namespace(value="arrow") @Properties(inherit=arrow.class) public class RecordBatchReader extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
RecordBatchReader(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RecordBatchReaderSharedResult |
Make(RecordBatchVector batches) |
static RecordBatchReaderSharedResult |
Make(RecordBatchVector batches,
Schema schema)
\brief Create a RecordBatchReader from a vector of RecordBatch.
|
RecordBatchResult |
Next()
\brief Iterator interface
|
Status |
ReadAll(RecordBatchVector batches)
\brief Consume entire stream as a vector of record batches
|
Status |
ReadAll(Table table)
\brief Read all batches and concatenate as arrow::Table
|
Status |
ReadNext(RecordBatch batch)
\brief Read the next record batch in the stream.
|
Schema |
schema() |
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 RecordBatchReader(Pointer p)
Pointer(Pointer).@SharedPtr @ByVal public Schema schema()
@ByVal public Status ReadNext(@SharedPtr RecordBatch batch)
batch - [out] the next loaded batch, null at end of stream@ByVal public RecordBatchResult Next()
@ByVal public Status ReadAll(RecordBatchVector batches)
@ByVal public Status ReadAll(@SharedPtr Table table)
@ByVal public static RecordBatchReaderSharedResult Make(@ByVal RecordBatchVector batches, @SharedPtr @ByVal(nullValue="std::shared_ptr<arrow::Schema>(nullptr)") Schema schema)
batches - [in] the vector of RecordBatch to read fromschema - [in] schema to conform to. Will be inferred from the first
element if not provided.@ByVal public static RecordBatchReaderSharedResult Make(@ByVal RecordBatchVector batches)
Copyright © 2021. All rights reserved.