public static class Table.RowBasedTable extends Object implements Table, Into<io.greptime.v1.RowData.Rows>
Table.Builder, Table.BulkTable, Table.BulkTableBuilder, Table.RowBasedTable, Table.TableBufferRoot
Constructor and Description |
---|
RowBasedTable(String tableName,
List<io.greptime.v1.RowData.ColumnSchema> columnSchemas) |
Modifier and Type | Method and Description |
---|---|
Table |
addRow(Object... values)
Inserts one row with all columns.
|
long |
bytesUsed()
This is an expensive operation, only used for testing
|
int |
columnCount()
Gets the columns count to write.
|
Table |
complete()
Completes the table data construction and prevents further row additions.
|
io.greptime.v1.RowData.Rows |
into() |
io.greptime.v1.Database.RowDeleteRequest |
intoRowDeleteRequest()
Converts to
Database.RowDeleteRequest . |
io.greptime.v1.Database.RowInsertRequest |
intoRowInsertRequest()
Converts to
Database.RowInsertRequest . |
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, pointCount, tableBufferRoot
public RowBasedTable(String tableName, List<io.greptime.v1.RowData.ColumnSchema> columnSchemas)
public String tableName()
Table
public int rowCount()
Table
public int columnCount()
Table
columnCount
in interface Table
public long bytesUsed()
This is an expensive operation, only used for testing
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 io.greptime.v1.Database.RowInsertRequest intoRowInsertRequest()
Table
Database.RowInsertRequest
.intoRowInsertRequest
in interface Table
Database.RowInsertRequest
public io.greptime.v1.Database.RowDeleteRequest intoRowDeleteRequest()
Table
Database.RowDeleteRequest
.intoRowDeleteRequest
in interface Table
Database.RowDeleteRequest
public io.greptime.v1.RowData.Rows into()
into
in interface Into<io.greptime.v1.RowData.Rows>
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.