public class RowQueryCriteria extends Object
| 构造器和说明 |
|---|
RowQueryCriteria(String tableName)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumnsToGet(Collection<String> columnsToGet)
Add the columns to read.
|
void |
addColumnsToGet(String columnName)
Add the column to be read.
|
void |
addColumnsToGet(String[] columnNames)
Add the columns to be read.
|
void |
clearColumnsToGet()
Clear the list of column names that have been set for reading.
|
void |
copyTo(RowQueryCriteria target) |
boolean |
getCacheBlocks()
Get the value of the CacheBlocks setting.
|
Set<String> |
getColumnsToGet()
Returns the list of column names to be read (read-only).
|
String |
getEndColumn() |
Filter |
getFilter()
Get the Filter used in this query.
|
int |
getMaxVersions()
Get the set MaxVersions.
|
String |
getStartColumn() |
String |
getTableName()
Returns the name of the queried table.
|
TimeRange |
getTimeRange()
Get the configured time range.
|
boolean |
hasSetCacheBlock()
Query whether CacheBlocks is set.
|
boolean |
hasSetEndColumn() |
boolean |
hasSetFilter()
Query whether the Filter is set.
|
boolean |
hasSetMaxVersions()
Query whether MaxVersions is set.
|
boolean |
hasSetStartColumn() |
boolean |
hasSetTimeRange()
Query whether TimeRange has been set.
|
int |
numColumnsToGet()
Returns the number of columns to be read.
|
void |
setCacheBlocks(boolean cacheBlocks)
Set whether the data returned by this read operation should enter the BlockCache.
|
void |
setEndColumn(String endColumn) |
void |
setFilter(Filter filter)
Set the Filter to be used for this query.
|
void |
setMaxVersions(int maxVersions)
Set MaxVersions.
|
void |
setStartColumn(String startColumn) |
void |
setTableName(String tableName)
Sets the name of the table to query.
|
void |
setTimeRange(TimeRange timeRange)
Set the timestamp range to read.
|
void |
setTimestamp(long timestamp)
Set the specific timestamp to read.
|
public RowQueryCriteria(String tableName)
tableName - The name of the table to query.public void setTableName(String tableName)
tableName - The name of the table.public String getTableName()
public Set<String> getColumnsToGet()
public void addColumnsToGet(String columnName)
columnName - The name of the column to be returned.public void addColumnsToGet(String[] columnNames)
columnNames - The names of the columns to be returned.public void addColumnsToGet(Collection<String> columnsToGet)
columnsToGet - public void clearColumnsToGet()
public int numColumnsToGet()
public void setMaxVersions(int maxVersions)
maxVersions - public int getMaxVersions()
IllegalStateException - if this parameter is not configuredpublic boolean hasSetMaxVersions()
public void setTimeRange(TimeRange timeRange)
timeRange - the timestamp rangepublic void setTimestamp(long timestamp)
timestamp - The timestamppublic TimeRange getTimeRange()
IllegalStateException - if this parameter is not configuredpublic boolean hasSetTimeRange()
public void setFilter(Filter filter)
filter - public Filter getFilter()
IllegalStateException - if the Filter is not setpublic boolean hasSetFilter()
public void setCacheBlocks(boolean cacheBlocks)
cacheBlocks - If true, the data read will be cached in the BlockCachepublic boolean getCacheBlocks()
IllegalStateException - if this parameter is not configuredpublic boolean hasSetCacheBlock()
public String getStartColumn()
public void setStartColumn(String startColumn)
public boolean hasSetStartColumn()
public String getEndColumn()
public void setEndColumn(String endColumn)
public boolean hasSetEndColumn()
public void copyTo(RowQueryCriteria target)
Copyright © 2025. All Rights Reserved.