@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 |
|---|---|
Status |
AddColumn(int i,
BytePointer field_name,
Array column,
RecordBatch out) |
Status |
AddColumn(int i,
Field field,
Array column,
RecordBatch out)
\brief Add column to the record batch, producing a new RecordBatch
|
Status |
AddColumn(int i,
String field_name,
Array column,
RecordBatch out)
\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
|
ArrayData |
column_data(int i)
\brief Retrieve an array's internaldata 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
|
boolean |
Equals(RecordBatch other)
\brief Determine if two record batches are exactly equal
|
static Status |
FromStructArray(Array array,
RecordBatch out)
\brief Construct record batch by copying vector of array data
|
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() |
Status |
RemoveColumn(int i,
RecordBatch out)
\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
|
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, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic RecordBatch(Pointer p)
Pointer.Pointer(Pointer).@SharedPtr @Cast(value={"","std::shared_ptr<arrow::RecordBatch>"}) public static RecordBatch Make(@Const @SharedPtr @ByRef Schema schema, @Cast(value="int64_t") long num_rows, @Const @ByRef 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(@Const @SharedPtr @ByRef 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 static Status FromStructArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array array, @SharedPtr RecordBatch out)
@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()
@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 Status AddColumn(int i, @Const @SharedPtr @ByRef Field field, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array column, @SharedPtr RecordBatch out)
i - [in] field index, which will be boundscheckedfield - [in] field to be addedcolumn - [in] column to be addedout - [out] record batch with column added@ByVal public Status AddColumn(int i, @StdString String field_name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array column, @SharedPtr RecordBatch out)
i - [in] field index, which will be boundscheckedfield_name - [in] name of field to be addedcolumn - [in] column to be addedout - [out] record batch with column added@ByVal public Status AddColumn(int i, @StdString BytePointer field_name, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Array>"}) Array column, @SharedPtr RecordBatch out)
@ByVal public Status RemoveColumn(int i, @SharedPtr RecordBatch out)
i - [in] field index, does boundscheckout - [out] record batch with column removed@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@ByVal public Status Validate()
Copyright © 2020. All rights reserved.