public class MultiRowQueryCriteria extends RowQueryCriteria
注意:读取参数不能为每行单独设置,多行必须使用相同的查询参数。
构造器和说明 |
---|
MultiRowQueryCriteria(String tableName) |
限定符和类型 | 方法和说明 |
---|---|
MultiRowQueryCriteria |
addRow(PrimaryKey primaryKey)
向多行查询条件中插入要查询的行的主键。
|
MultiRowQueryCriteria |
addRow(PrimaryKey primaryKey,
byte[] token)
向多行查询条件中插入要查询的行的主键。
|
void |
clear()
清空要查询的所有行。
|
MultiRowQueryCriteria |
cloneWithoutRowKeys() |
PrimaryKey |
get(int index)
获取某行的主键。
|
List<PrimaryKey> |
getRowKeys()
获取该表中所要要查询的行的主键。
|
List<byte[]> |
getTokens() |
boolean |
isEmpty() |
void |
setRowKeys(List<PrimaryKey> primaryKeys)
设置该表中所有要查询的行的主键。
|
int |
size()
获取要查询的行的个数。
|
addColumnsToGet, addColumnsToGet, addColumnsToGet, clearColumnsToGet, copyTo, getCacheBlocks, getColumnsToGet, getEndColumn, getFilter, getMaxVersions, getStartColumn, getTableName, getTimeRange, hasSetCacheBlock, hasSetEndColumn, hasSetFilter, hasSetMaxVersions, hasSetStartColumn, hasSetTimeRange, numColumnsToGet, setCacheBlocks, setEndColumn, setFilter, setMaxVersions, setStartColumn, setTableName, setTimeRange, setTimestamp
public MultiRowQueryCriteria(String tableName)
public MultiRowQueryCriteria addRow(PrimaryKey primaryKey)
primaryKey
- 要查询的行的主键。public MultiRowQueryCriteria addRow(PrimaryKey primaryKey, byte[] token)
primaryKey
- 要查询的行的主键。public List<PrimaryKey> getRowKeys()
public void setRowKeys(List<PrimaryKey> primaryKeys)
primaryKeys
- 所有行的主键。public List<byte[]> getTokens()
public PrimaryKey get(int index)
若该行index不存在,则返回null。
index
- 该行的索引public void clear()
public int size()
public boolean isEmpty()
public MultiRowQueryCriteria cloneWithoutRowKeys()
Copyright © 2016. All Rights Reserved.