public class RowUpdateChange extends RowChange
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RowUpdateChange.Type |
| 构造器和说明 |
|---|
RowUpdateChange(RowUpdateChange toCopy)
Copy constructor
|
RowUpdateChange(String tableName)
Constructor.
|
RowUpdateChange(String tableName,
PrimaryKey primaryKey)
Constructor.
|
RowUpdateChange(String tableName,
PrimaryKey primaryKey,
long ts)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RowUpdateChange |
deleteColumn(String name,
long ts)
Delete a specific version of an attribute column.
|
RowUpdateChange |
deleteColumns(String name)
Delete all versions of a certain property column.
|
List<Pair<Column,RowUpdateChange.Type>> |
getColumnsToUpdate()
Get all the columns to be updated.
|
int |
getDataSize()
Get the size of the serialized data
|
RowUpdateChange |
increment(Column column) |
RowUpdateChange |
put(Column column)
Write a new attribute column.
|
RowUpdateChange |
put(List<Column> columns)
Write a new batch of attribute columns.
|
RowUpdateChange |
put(String name,
ColumnValue value)
Write a new attribute column.
|
RowUpdateChange |
put(String name,
ColumnValue value,
long ts)
Write a new attribute column.
|
addReturnColumn, compareTo, getCondition, getPrimaryKey, getReturnColumnNames, getReturnType, getTableName, setCondition, setPrimaryKey, setReturnType, setTableNamepublic RowUpdateChange(String tableName)
The table name cannot be null or empty.
tableName - The name of the tablepublic RowUpdateChange(String tableName, PrimaryKey primaryKey)
The table name cannot be null or empty.
The primary key of the row cannot be null or empty.
tableName - The name of the tableprimaryKey - The primary key of the rowpublic RowUpdateChange(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.
The default timestamp is irrelevant to delete actions.
The table name cannot be null or empty.
The primary key of the row cannot be null or empty.
tableName - The name of the tableprimaryKey - The primary key of the rowts - Default timestamppublic RowUpdateChange(RowUpdateChange toCopy)
toCopy - public RowUpdateChange put(Column column)
column - public RowUpdateChange put(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 RowUpdateChange put(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 RowUpdateChange put(List<Column> columns)
The order of writing attribute columns is consistent with the order in the list.
columns - List of attribute columnspublic RowUpdateChange deleteColumn(String name, long ts)
name - the name of the attribute columnts - the timestamp of the attribute columnpublic RowUpdateChange deleteColumns(String name)
name - the name of the property columnpublic RowUpdateChange increment(Column column)
public List<Pair<Column,RowUpdateChange.Type>> getColumnsToUpdate()
If the type is RowUpdateChange.Type.PUT, it indicates writing a property column, and the corresponding Column is the property column to be written.
If the type is RowUpdateChange.Type.DELETE, it indicates deleting a specific version of a property column, and the value in the corresponding Column is invalid.
If the type is RowUpdateChange.Type.DELETE_ALL, it indicates deleting all versions of a property column, and both the value and timestamp in the corresponding Column are invalid.
public int getDataSize()
MeasurableCopyright © 2025. All Rights Reserved.