public static class Table.BulkTable extends Object implements Table.TableBufferRoot
Table.Builder, Table.BulkTable, Table.BulkTableBuilder, Table.RowBasedTable, Table.TableBufferRoot
Constructor and Description |
---|
BulkTable(String tableName,
List<io.greptime.v1.Common.ColumnDataType> dataTypes,
List<io.greptime.v1.Common.ColumnDataTypeExtension> dataTypeExtensions,
org.apache.arrow.vector.VectorSchemaRoot root,
int columnBufferSize) |
Modifier and Type | Method and Description |
---|---|
Table |
addRow(Object... values)
Inserts one row with all columns.
|
long |
bytesUsed()
Gets the bytes used by the table.
|
int |
columnCount()
Gets the columns count to write.
|
Table |
complete()
Completes the table data construction and prevents further row additions.
|
boolean |
isCompleted()
Checks if the table has been completed.
|
int |
rowCount()
Gets the rows count to write.
|
Table |
subRange(int fromIndex,
int toIndex)
Gets a sub-range of the table.
|
String |
tableName()
Gets the table name to write.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNumValues, from, intoRowDeleteRequest, intoRowInsertRequest, pointCount, tableBufferRoot
public BulkTable(String tableName, List<io.greptime.v1.Common.ColumnDataType> dataTypes, List<io.greptime.v1.Common.ColumnDataTypeExtension> dataTypeExtensions, org.apache.arrow.vector.VectorSchemaRoot root, int columnBufferSize)
public String tableName()
Table
public int rowCount()
Table
public int columnCount()
Table
columnCount
in interface Table
public long bytesUsed()
Table
public Table addRow(Object... values)
Table
The order of the values must be the same as the order of the schema.
public Table subRange(int fromIndex, int toIndex)
Table
public Table complete()
Table
This method must be called after all rows have been added to ensure any buffered rows are properly flushed to the underlying storage. Failure to call this method may result in data loss, particularly for implementations that use internal buffering.
public boolean isCompleted()
Table
isCompleted
in interface Table
Copyright © 2025. All rights reserved.