public class RowPutChange extends RowChange
| 构造器和说明 |
|---|
RowPutChange(RowPutChange toCopy)
Copy constructor
|
RowPutChange(String tableName)
Constructor.
|
RowPutChange(String tableName,
PrimaryKey primaryKey)
Constructor.
|
RowPutChange(String tableName,
PrimaryKey primaryKey,
long ts)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RowPutChange |
addColumn(Column column)
Write a new attribute column.
|
RowPutChange |
addColumn(String name,
ColumnValue value)
Write a new attribute column.
|
RowPutChange |
addColumn(String name,
ColumnValue value,
long ts)
Write a new attribute column.
|
RowPutChange |
addColumns(Column[] columns)
Write a new batch of attribute columns.
|
RowPutChange |
addColumns(List<Column> columns)
Write a new batch of attribute columns.
|
List<Column> |
getColumnsToPut()
Get the list of all attribute columns to be written.
|
List<Column> |
getColumnsToPut(String name)
Get the list of all attribute columns that have the same name as the specified one.
|
int |
getDataSize()
Get the size of the serialized data
|
boolean |
has(String name)
Check if there is already a property column with the same name written, ignoring whether the timestamp and value are equal.
|
boolean |
has(String name,
ColumnValue value)
Check if there are attribute columns written with the same name and value, ignoring whether the timestamps are equal.
|
boolean |
has(String name,
long ts)
Check if there is an attribute column written with the same name and timestamp, ignoring whether the values are equal.
|
boolean |
has(String name,
long ts,
ColumnValue value)
Check if there is an attribute column written with the same name, same timestamp, and same value.
|
addReturnColumn, compareTo, getCondition, getPrimaryKey, getReturnColumnNames, getReturnType, getTableName, setCondition, setPrimaryKey, setReturnType, setTableNamepublic RowPutChange(String tableName)
tableName - The name of the tablepublic RowPutChange(String tableName, PrimaryKey primaryKey)
tableName - The name of the tableprimaryKey - The primary key of the rowpublic RowPutChange(String tableName, PrimaryKey primaryKey, long ts)
Allows users to set a default timestamp; if the written column does not include a timestamp, this default timestamp will be used.
tableName - The name of the tableprimaryKey - The primary key of the rowts - Default timestamppublic RowPutChange(RowPutChange toCopy)
toCopy - public RowPutChange addColumn(Column column)
column - public RowPutChange addColumn(String name, ColumnValue value)
If timestamp has been set, then the default timestamp will be used.
name - the name of the attribute columnvalue - the value of the attribute columnpublic RowPutChange addColumn(String name, ColumnValue value, long ts)
name - the name of the attribute columnvalue - the value of the attribute columnts - the timestamp of the attribute columnpublic RowPutChange addColumns(List<Column> columns)
The order of writing attribute columns is consistent with the order in the list.
columns - List of attribute columnspublic RowPutChange addColumns(Column[] columns)
The order of writing attribute columns is consistent with the order in the array.
columns - public List<Column> getColumnsToPut()
public List<Column> getColumnsToPut(String name)
name - The name of the attribute columnpublic int getDataSize()
Measurablepublic boolean has(String name)
name - The property column namepublic boolean has(String name, long ts)
name - Attribute column namets - Attribute column timestamppublic boolean has(String name, ColumnValue value)
name - attribute column namevalue - attribute column valuepublic boolean has(String name, long ts, ColumnValue value)
name - Attribute column namets - Attribute column timestampvalue - Attribute column valueCopyright © 2025. All Rights Reserved.