|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aliyun.openservices.ots.model.RowQueryCriteria
com.aliyun.openservices.ots.model.RangeRowQueryCriteria
public class RangeRowQueryCriteria
表示获取表(Table)中主键(Primary Key)的特定范围内多行数据的查询条件。
| 构造方法摘要 | |
|---|---|
RangeRowQueryCriteria(String tableName)
构造一个在给定名称的表中查询的条件。 |
|
| 方法摘要 | |
|---|---|
Direction |
getDirection()
获取范围查询的读取顺序(正序(FORWARD)或反序(BACKWARD))。 |
RowPrimaryKey |
getExclusiveEndPrimaryKey()
获取范围查询的右边界的主键值。 |
RowPrimaryKey |
getInclusiveStartPrimaryKey()
获取范围查询的左边界的主键值。 |
int |
getLimit()
获取操作时返回的最大行数。 |
void |
setDirection(Direction direction)
设置范围查询的读取顺序(正序(FORWARD)或反序(BACKWARD))。 |
void |
setExclusiveEndPrimaryKey(RowPrimaryKey exclusiveEndPrimaryKey)
范围查询需要用户指定一个主键的范围,该范围是一个左闭右开的区间,exclusiveEndPrimaryKey为该区间的右边界。 |
void |
setInclusiveStartPrimaryKey(RowPrimaryKey inclusiveStartPrimaryKey)
范围查询需要用户指定一个主键的范围,该范围是一个左闭右开的区间,inclusiveStartPrimaryKey为该区间的左边界。 |
void |
setLimit(int limit)
设置查询时单次请求返回的行数。 |
| 从类 com.aliyun.openservices.ots.model.RowQueryCriteria 继承的方法 |
|---|
addColumnsToGet, addColumnsToGet, getColumnsToGet, getTableName, setColumnsToGet, setTableName |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RangeRowQueryCriteria(String tableName)
tableName - 查询的表名。| 方法详细信息 |
|---|
public int getLimit()
public void setLimit(int limit)
limit - 单次请求返回的行数。public Direction getDirection()
public void setDirection(Direction direction)
direction - 读取顺序public RowPrimaryKey getInclusiveStartPrimaryKey()
public void setInclusiveStartPrimaryKey(RowPrimaryKey inclusiveStartPrimaryKey)
PrimaryKeyRange.INF_MIN或者PrimaryKeyRange.INF_MAX用于表示该列的所有取值范围。
inclusiveStartPrimaryKey - 范围查询的左边界的主键值。public RowPrimaryKey getExclusiveEndPrimaryKey()
public void setExclusiveEndPrimaryKey(RowPrimaryKey exclusiveEndPrimaryKey)
PrimaryKeyRange.INF_MIN或者PrimaryKeyRange.INF_MAX用于表示该列的所有取值范围。
exclusiveEndPrimaryKey - 范围查询的右边界的主键值。
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||