public class RangeIteratorParameter extends RowQueryCriteria
| 构造器和说明 |
|---|
RangeIteratorParameter(String tableName)
构造一个在给定名称的表中查询的条件。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBufferSize()
获取内部Buffer的大小。
|
int |
getCount()
获取操作时返回的最大行数。
|
Direction |
getDirection()
获取范围查询的读取顺序(正序(FORWARD)或反序(BACKWARD))。
|
RowPrimaryKey |
getExclusiveEndPrimaryKey()
获取范围查询的右边界的主键值。
|
RowPrimaryKey |
getInclusiveStartPrimaryKey()
获取范围查询的左边界的主键值。
|
void |
setBufferSize(int bufferSize)
设置Buffer的大小。
|
void |
setCount(int count)
设置查询时单次请求返回的行数。
|
void |
setDirection(Direction direction)
设置范围查询的读取顺序(正序(FORWARD)或反序(BACKWARD))。
|
void |
setExclusiveEndPrimaryKey(RowPrimaryKey exclusiveEndPrimaryKey)
范围查询需要用户指定一个主键的范围,该范围是一个左闭右开的区间,exclusiveEndPrimaryKey为该区间的右边界。
|
void |
setInclusiveStartPrimaryKey(RowPrimaryKey inclusiveStartPrimaryKey)
范围查询需要用户指定一个主键的范围,该范围是一个左闭右开的区间,inclusiveStartPrimaryKey为该区间的左边界。
|
addColumnsToGet, addColumnsToGet, copyTo, getColumnsToGet, getFilter, getTableName, setColumnsToGet, setFilter, setTableNamepublic RangeIteratorParameter(String tableName)
tableName - 查询的表名。public int getCount()
public void setCount(int count)
count - 单次请求返回的行数。public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize - Buffer的大小。public Direction getDirection()
public void setDirection(Direction direction)
direction - 读取顺序public RowPrimaryKey getInclusiveStartPrimaryKey()
public void setInclusiveStartPrimaryKey(RowPrimaryKey inclusiveStartPrimaryKey)
inclusiveStartPrimaryKey - 范围查询的左边界的主键值。public RowPrimaryKey getExclusiveEndPrimaryKey()
public void setExclusiveEndPrimaryKey(RowPrimaryKey exclusiveEndPrimaryKey)
exclusiveEndPrimaryKey - 范围查询的右边界的主键值。Copyright © 2019. All Rights Reserved.