Package org.apache.cassandra.db
Interface PartitionRangeReadQuery
- All Superinterfaces:
ReadQuery
- All Known Implementing Classes:
PartitionRangeReadCommand,PartitionRangeReadCommand.VirtualTablePartitionRangeReadCommand
A
ReadQuery for a range of partitions.-
Method Summary
Modifier and TypeMethodDescriptionstatic ReadQuerycreate(TableMetadata table, long nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange) default QueryPagergetPager(PagingState pagingState, ProtocolVersion protocolVersion) Returns a pager for the query.default booleanselectsClustering(DecoratedKey key, Clustering<?> clustering) default booleanChecks if thisReadQueryselects full partitions, that is it has no filtering on clustering or regular columns.default booleanselectsKey(DecoratedKey key) withUpdatedLimit(DataLimits newLimits) Creates a newPartitionRangeReadQuerywith the updated limits.withUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange) Creates a newPartitionRangeReadQuerywith the updated limits and data range.Methods inherited from interface org.apache.cassandra.db.ReadQuery
columnFilter, dataRange, execute, executeInternal, executeLocally, executionController, isEmpty, isTopK, limits, maybeValidateIndex, metadata, nowInSec, rowFilter, trackWarnings
-
Method Details
-
create
static ReadQuery create(TableMetadata table, long nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange) -
withUpdatedLimit
Creates a newPartitionRangeReadQuerywith the updated limits.- Parameters:
newLimits- the new limits- Returns:
- the new
PartitionRangeReadQuery
-
withUpdatedLimitsAndDataRange
Creates a newPartitionRangeReadQuerywith the updated limits and data range.- Parameters:
newLimits- the new limits- Returns:
- the new
PartitionRangeReadQuery
-
getPager
Description copied from interface:ReadQueryReturns a pager for the query. -
selectsKey
- Specified by:
selectsKeyin interfaceReadQuery- Returns:
- true if the read query would select the given key, including checks against the row filter, if checkRowFilter is true
-
selectsClustering
- Specified by:
selectsClusteringin interfaceReadQuery- Returns:
- true if the read query would select the given clustering, including checks against the row filter, if checkRowFilter is true
-
selectsFullPartition
default boolean selectsFullPartition()Description copied from interface:ReadQueryChecks if thisReadQueryselects full partitions, that is it has no filtering on clustering or regular columns.- Specified by:
selectsFullPartitionin interfaceReadQuery- Returns:
trueif thisReadQueryselects full partitions,falseotherwise.
-