public class RangeIteratorParameter extends RowQueryCriteria
构造器和说明 |
---|
RangeIteratorParameter(RangeRowQueryCriteria criteria) |
RangeIteratorParameter(String tableName)
构造一个在给定名称的表中查询的条件。
|
限定符和类型 | 方法和说明 |
---|---|
int |
getBufferSize()
获取内部Buffer的大小。
|
Direction |
getDirection()
获取范围查询的读取顺序(正序(FORWARD)或反序(BACKWARD))。
|
PrimaryKey |
getExclusiveEndPrimaryKey()
获取范围查询的右边界的主键值。
|
PrimaryKey |
getInclusiveStartPrimaryKey()
获取范围查询的左边界的主键值。
|
int |
getMaxCount()
Iterator最多返回的行数。
|
void |
setBufferSize(int bufferSize)
设置Buffer的大小。
|
void |
setDirection(Direction direction)
设置范围查询的读取顺序(正序(FORWARD)或反序(BACKWARD))。
|
void |
setExclusiveEndPrimaryKey(PrimaryKey exclusiveEndPrimaryKey)
范围查询需要用户指定一个主键的范围,该范围是一个左闭右开的区间,exclusiveEndPrimaryKey为该区间的右边界。
|
void |
setInclusiveStartPrimaryKey(PrimaryKey inclusiveStartPrimaryKey)
范围查询需要用户指定一个主键的范围,该范围是一个左闭右开的区间,inclusiveStartPrimaryKey为该区间的左边界。
|
void |
setMaxCount(int maxCount)
设置该Iterator最多返回的行数。
|
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 RangeIteratorParameter(String tableName)
tableName
- 查询的表名。public RangeIteratorParameter(RangeRowQueryCriteria criteria)
public int getMaxCount()
public void setMaxCount(int maxCount)
maxCount
- 单次请求返回的行数。public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize
- Buffer的大小。public Direction getDirection()
public void setDirection(Direction direction)
direction
- 读取顺序public PrimaryKey getInclusiveStartPrimaryKey()
public void setInclusiveStartPrimaryKey(PrimaryKey inclusiveStartPrimaryKey)
PrimaryKeyValue.INF_MIN
或者PrimaryKeyValue.INF_MAX
用于表示该列的所有取值范围。inclusiveStartPrimaryKey
- 范围查询的左边界的主键值。public PrimaryKey getExclusiveEndPrimaryKey()
public void setExclusiveEndPrimaryKey(PrimaryKey exclusiveEndPrimaryKey)
PrimaryKeyValue.INF_MIN
或者PrimaryKeyValue.INF_MAX
用于表示该列的所有取值范围。exclusiveEndPrimaryKey
- 范围查询的右边界的主键值。Copyright © 2016. All Rights Reserved.