@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class Table extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Table(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TableResult |
AddColumn(int i,
Field field_arg,
ChunkedArray column)
\brief Add column to the table, producing a new Table
|
ChunkedArray |
column(int i)
\brief Return a column by index
|
StringVector |
ColumnNames()
\brief Return names of all columns
|
ChunkedArrayVector |
columns()
\brief Return vector of all columns for table
|
TableResult |
CombineChunks() |
TableResult |
CombineChunks(MemoryPool pool)
\brief Make a new table by combining the chunks this table has.
|
boolean |
Equals(Table other) |
boolean |
Equals(Table other,
boolean check_metadata)
\brief Determine if tables are equal
Two tables can be equal only if they have equal schemas.
|
Field |
field(int i)
Return a column's field by index
|
FieldVector |
fields()
\brief Return vector of all fields for table
|
TableResult |
Flatten() |
TableResult |
Flatten(MemoryPool pool)
\brief Flatten the table, producing a new Table.
|
static TableResult |
FromChunkedStructArray(ChunkedArray array)
\brief Construct a Table from a chunked StructArray.
|
static TableResult |
FromRecordBatches(RecordBatchVector batches)
\brief Construct a Table from RecordBatches, using schema supplied by the first
RecordBatch.
|
static TableResult |
FromRecordBatches(Schema schema,
RecordBatchVector batches)
\brief Construct a Table from RecordBatches, using supplied schema.
|
static TableResult |
FromRecordBatchReader(RecordBatchReader reader)
\brief Construct a Table from a RecordBatchReader.
|
ChunkedArray |
GetColumnByName(BytePointer name) |
ChunkedArray |
GetColumnByName(String name)
\brief Return a column by name
|
static Table |
Make(Schema schema,
ArrayVector arrays) |
static Table |
Make(Schema schema,
ArrayVector arrays,
long num_rows)
\brief Construct a Table from schema and arrays
|
static Table |
Make(Schema schema,
ChunkedArrayVector columns) |
static Table |
Make(Schema schema,
ChunkedArrayVector columns,
long num_rows)
\brief Construct a Table from schema and columns
If columns is zero-length, the table's number of rows is zero
|
int |
num_columns()
\brief Return the number of columns in the table
|
long |
num_rows()
\brief Return the number of rows (equal to each column's logical length)
|
TableResult |
RemoveColumn(int i)
\brief Remove column from the table, producing a new Table
|
TableResult |
RenameColumns(StringVector names)
\brief Rename columns with provided names
|
Table |
ReplaceSchemaMetadata(KeyValueMetadata metadata)
\brief Replace schema key-value metadata with new metadata (EXPERIMENTAL)
|
Schema |
schema()
\brief Return the table schema
|
TableResult |
SelectColumns(int[] indices) |
TableResult |
SelectColumns(IntBuffer indices) |
TableResult |
SelectColumns(IntPointer indices)
\brief Return new table with specified columns
|
TableResult |
SetColumn(int i,
Field field_arg,
ChunkedArray column)
\brief Replace a column in the table, producing a new Table
|
Table |
Slice(long offset)
\brief Slice from first row at offset until end of the table
|
Table |
Slice(long offset,
long length)
\brief Construct a zero-copy slice of the table with the
indicated offset and length
|
String |
ToString() |
Status |
Validate()
\brief Perform cheap validation checks to determine obvious inconsistencies
within the table's schema and internal data.
|
Status |
ValidateFull()
\brief Perform extensive validation checks to determine inconsistencies
within the table'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, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Table(Pointer p)
Pointer(Pointer).@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Table>"}) public static Table Make(@SharedPtr @ByVal Schema schema, @ByVal ChunkedArrayVector columns, @Cast(value="int64_t") long num_rows)
schema - [in] The table schema (column types)columns - [in] The table's columns as chunked arraysnum_rows - [in] number of rows in table, -1 (default) to infer from columns@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Table>"}) public static Table Make(@SharedPtr @ByVal Schema schema, @ByVal ChunkedArrayVector columns)
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Table>"}) public static Table Make(@SharedPtr @ByVal Schema schema, @Const @ByRef ArrayVector arrays, @Cast(value="int64_t") long num_rows)
schema - [in] The table schema (column types)arrays - [in] The table's columns as arraysnum_rows - [in] number of rows in table, -1 (default) to infer from columns@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Table>"}) public static Table Make(@SharedPtr @ByVal Schema schema, @Const @ByRef ArrayVector arrays)
@ByVal public static TableResult FromRecordBatchReader(RecordBatchReader reader)
reader - [in] the arrow::Schema for each batch@ByVal public static TableResult FromRecordBatches(@Const @ByRef RecordBatchVector batches)
batches - [in] a std::vector of record batches@ByVal public static TableResult FromRecordBatches(@SharedPtr @ByVal Schema schema, @Const @ByRef RecordBatchVector batches)
schema - [in] the arrow::Schema for each batchbatches - [in] a std::vector of record batches@ByVal public static TableResult FromChunkedStructArray(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) ChunkedArray array)
array - [in] a chunked StructArray@SharedPtr @ByVal public Schema schema()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::ChunkedArray>"}) public ChunkedArray column(int i)
@ByVal public ChunkedArrayVector columns()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Field>"}) public Field field(int i)
@ByVal public FieldVector fields()
@SharedPtr @Cast(value={"","std::shared_ptr<arrow::Table>"}) public Table Slice(@Cast(value="int64_t") long offset, @Cast(value="int64_t") long length)
offset - [in] the index of the first row in the constructed
slicelength - [in] the number of rows of the slice. If there are not enough
rows in the table, the length will be adjusted accordingly