@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class RecordBatch extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
RecordBatch(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RecordBatchResult |
AddColumn(int i,
BytePointer field_name,
Array column) |
RecordBatchResult |
AddColumn(int i,
Field field,
Array column)
\brief Add column to the record batch, producing a new RecordBatch
|
RecordBatchResult |
AddColumn(int i,
String field_name,
Array column)
\brief Add new nullable column to the record batch, producing a new
RecordBatch.
|
boolean |
ApproxEquals(RecordBatch other)
\brief Determine if two record batches are approximately equal
|
ArrayDataVector |
column_data()
\brief Retrieve all arrays' internal data from the record batch.
|
ArrayData |
column_data(int i)
\brief Retrieve an array's internal data from the record batch
|
String |
column_name(int i)
\brief Name in i-th column
|
Array |
column(int i)
\brief Retrieve an array from the record batch
|
ArrayVector |
columns()
\brief Retrieve all columns at once
|
boolean |
Equals(RecordBatch other) |
boolean |
Equals(RecordBatch other,
boolean check_metadata)
\brief Determine if two record batches are exactly equal
|
static RecordBatchResult |
FromStructArray(Array array)
\brief Construct record batch from struct array
This constructs a record batch using the child arrays of the given
array, which must be a struct array.
|
Array |
GetColumnByName(BytePointer name) |
Array |
GetColumnByName(String name)
\brief Retrieve an array from the record batch
|
static RecordBatch |
Make(Schema schema,
long num_rows,
ArrayDataVector columns)
\brief Construct record batch from vector of internal data structures
|
static RecordBatch |
Make(Schema schema,
long num_rows,
ArrayVector columns) |
int |
num_columns() |
long |
num_rows() |
RecordBatchResult |
RemoveColumn(int i)
\brief Remove column from the record batch, producing a new RecordBatch
|
RecordBatch |
ReplaceSchemaMetadata(KeyValueMetadata metadata) |
Schema |
schema() |
RecordBatch |
Slice(long offset)
\brief Slice each of the arrays in the record batch
|
RecordBatch |
Slice(long offset,
long length)
\brief Slice each of the arrays in the record batch
|
String |
ToString() |
StructArrayResult |
ToStructArray()
\brief Convert record batch to struct array
Create a struct array whose child arrays are the record batch's columns.
|
Status |
Validate()
\brief Perform cheap validation checks to determine obvious inconsistencies
within the record batch's schema and internal data.
|
Status |
ValidateFull()
\brief Perform extensive validation checks to determine inconsistencies
within the record batch's schema and internal data.
|
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 RecordBatch(Pointer p)
Pointer(Pointer).@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) public static RecordBatch Make(@SharedPtr @ByVal Schema schema, @Cast(value="int64_t") long num_rows, @ByVal ArrayVector columns)
schema - [in] The record batch schemanum_rows - [in] length of fields in the record batch. Each array
should have the same length as num_rowscolumns - [in] the record batch fields as vector of arrays@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) public static RecordBatch Make(@SharedPtr @ByVal Schema schema, @Cast(value="int64_t") long num_rows, @ByVal ArrayDataVector columns)
schema - the record batch schemanum_rows - the number of semantic rows in the record batch. This
should be equal to the length of each fieldcolumns - the data for the batch's columns@ByVal public StructArrayResult ToStructArray()
@ByVal public static RecordBatchResult FromStructArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array array)
@Cast(value="bool") public boolean Equals(@Const @ByRef RecordBatch other, @Cast(value="bool") boolean check_metadata)
other - [in] the RecordBatch to compare withcheck_metadata - [in] if true, check that Schema metadata is the same@Cast(value="bool") public boolean Equals(@Const @ByRef RecordBatch other)
@Cast(value="bool") public boolean ApproxEquals(@Const @ByRef RecordBatch other)
@SharedPtr @ByVal public Schema schema()
@ByVal public ArrayVector columns()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array column(int i)
i - [in] field index, does not boundscheck@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array GetColumnByName(@StdString String name)
name - [in] field name@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) public Array GetColumnByName(@StdString BytePointer name)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ArrayData>"}) public ArrayData column_data(int i)
i - [in] field index, does not boundscheck@ByVal public ArrayDataVector column_data()
@ByVal public RecordBatchResult AddColumn(int i, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) Field field, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array column)
i - [in] field index, which will be boundscheckedfield - [in] field to be addedcolumn - [in] column to be added@ByVal public RecordBatchResult AddColumn(int i, @StdString String field_name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array column)
i - [in] field index, which will be boundscheckedfield_name - [in] name of field to be addedcolumn - [in] column to be added@ByVal public RecordBatchResult AddColumn(int i, @StdString BytePointer field_name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array column)
@ByVal public RecordBatchResult RemoveColumn(int i)
i - [in] field index, does boundscheck@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) public RecordBatch ReplaceSchemaMetadata(@Const @Cast(value="const arrow::KeyValueMetadata*") @SharedPtr @ByRef KeyValueMetadata metadata)
@StdString public String column_name(int i)
public int num_columns()
@Cast(value="int64_t") public long num_rows()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) public RecordBatch Slice(@Cast(value="int64_t") long offset)
offset - [in] the starting offset to slice, through end of batch@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) public RecordBatch Slice(@Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
offset - [in] the starting offset to slicelength - [in] the number of elements to slice from offset@StdString public String ToString()
@ByVal public Status Validate()
Copyright © 2021. All rights reserved.