public class RangeRowQueryCriteria extends RowQueryCriteria
| 构造器和说明 |
|---|
RangeRowQueryCriteria(String tableName)
Constructs a query condition for a table with the given name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Direction |
getDirection()
Get the read order of the range query (forward(FORWARD) or backward(BACKWARD)).
|
PrimaryKey |
getExclusiveEndPrimaryKey()
Get the primary key value of the right boundary for the range query.
|
PrimaryKey |
getInclusiveStartPrimaryKey()
Get the primary key value of the left boundary for the range query.
|
int |
getLimit()
Get the maximum number of rows returned during the operation
|
byte[] |
getToken() |
boolean |
hasSetToken() |
void |
setDirection(Direction direction)
Set the read order (forward(FORWARD) or backward(BACKWARD)) for the range query.
|
void |
setExclusiveEndPrimaryKey(PrimaryKey exclusiveEndPrimaryKey)
Range queries require the user to specify a range for the primary key.
|
void |
setInclusiveStartPrimaryKey(PrimaryKey inclusiveStartPrimaryKey)
A range query requires the user to specify a range of primary keys.
|
void |
setLimit(int limit)
Set the number of rows returned per request during the query
|
void |
setToken(byte[] token) |
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, setTimestamppublic RangeRowQueryCriteria(String tableName)
tableName - The name of the table to query.public int getLimit()
public void setLimit(int limit)
limit - The number of rows returned per request.public Direction getDirection()
public void setDirection(Direction direction)
direction - Read orderpublic PrimaryKey getInclusiveStartPrimaryKey()
public void setInclusiveStartPrimaryKey(PrimaryKey inclusiveStartPrimaryKey)
PrimaryKeyValue.INF_MIN or PrimaryKeyValue.INF_MAX to represent the entire range of possible values for that column.inclusiveStartPrimaryKey - The primary key value for the left boundary of the range query.public PrimaryKey getExclusiveEndPrimaryKey()
public void setExclusiveEndPrimaryKey(PrimaryKey exclusiveEndPrimaryKey)
PrimaryKeyValue.INF_MIN or PrimaryKeyValue.INF_MAX to represent the full range of possible values for that column.exclusiveEndPrimaryKey - The primary key value for the right boundary of the range query.public byte[] getToken()
public void setToken(byte[] token)
public boolean hasSetToken()
Copyright © 2025. All Rights Reserved.