public class RowPutChange extends RowChange
构造器和说明 |
---|
RowPutChange(RowPutChange toCopy)
拷贝构造函数
|
RowPutChange(String tableName)
构造函数。
|
RowPutChange(String tableName,
PrimaryKey primaryKey)
构造函数。
|
RowPutChange(String tableName,
PrimaryKey primaryKey,
long ts)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
RowPutChange |
addColumn(Column column)
新写入一个属性列。
|
RowPutChange |
addColumn(String name,
ColumnValue value)
新写入一个属性列。
|
RowPutChange |
addColumn(String name,
ColumnValue value,
long ts)
新写入一个属性列。
|
RowPutChange |
addColumns(Column[] columns)
新写入一批属性列。
|
RowPutChange |
addColumns(List<Column> columns)
新写入一批属性列。
|
List<Column> |
getColumnsToPut()
获取所有要写入的属性列列表。
|
List<Column> |
getColumnsToPut(String name)
获取名称与指定名称相同的所有属性列的列表。
|
int |
getDataSize()
获取序列化后的数据大小
|
boolean |
has(String name)
检查是否已经有相同名称的属性列写入,忽略时间戳和值是否相等。
|
boolean |
has(String name,
ColumnValue value)
检查是否有相同名称和相同值的属性列写入,忽略时间戳是否相等。
|
boolean |
has(String name,
long ts)
检查是否有相同名称和相同时间戳的属性列写入,忽略值是否相等。
|
boolean |
has(String name,
long ts,
ColumnValue value)
检查是否有相同名称、相同时间戳并且相同值的属性列写入。
|
compareTo, getCondition, getPrimaryKey, getReturnType, getTableName, setCondition, setPrimaryKey, setReturnType, setTableName
public RowPutChange(String tableName)
tableName
- 表的名称public RowPutChange(String tableName, PrimaryKey primaryKey)
tableName
- 表的名称primaryKey
- 行的主键public RowPutChange(String tableName, PrimaryKey primaryKey, long ts)
允许用户设置一个默认的时间戳,若写入的列没有带时间戳,则会使用该默认时间戳。
tableName
- 表的名称primaryKey
- 行的主键ts
- 默认时间戳public RowPutChange(RowPutChange toCopy)
toCopy
- public RowPutChange addColumn(Column column)
column
- public RowPutChange addColumn(String name, ColumnValue value)
若设置过timestamp
,则使用该默认的时间戳。
name
- 属性列的名称value
- 属性列的值public RowPutChange addColumn(String name, ColumnValue value, long ts)
name
- 属性列的名称value
- 属性列的值ts
- 属性列的时间戳public RowPutChange addColumns(List<Column> columns)
属性列的写入顺序与列表中的顺序一致。
columns
- 属性列列表public RowPutChange addColumns(Column[] columns)
属性列的写入顺序与数组中的顺序一致。
columns
- public List<Column> getColumnsToPut(String name)
name
- 属性列名称public int getDataSize()
Measurable
public boolean has(String name)
name
- 属性列名称public boolean has(String name, long ts)
name
- 属性列名称ts
- 属性列时间戳public boolean has(String name, ColumnValue value)
name
- 属性列名称value
- 属性列值public boolean has(String name, long ts, ColumnValue value)
name
- 属性列名称ts
- 属性列时间戳value
- 属性列值Copyright © 2017. All Rights Reserved.