Package org.apache.cassandra.db
Interface PartitionRangeReadQuery
-
- All Superinterfaces:
ReadQuery
- All Known Implementing Classes:
PartitionRangeReadCommand,PartitionRangeReadCommand.VirtualTablePartitionRangeReadCommand
public interface PartitionRangeReadQuery extends ReadQuery
AReadQueryfor a range of partitions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ReadQuerycreate(TableMetadata table, int nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange)DataRangedataRange()default QueryPagergetPager(PagingState pagingState, ProtocolVersion protocolVersion)Returns a pager for the query.default booleanselectsClustering(DecoratedKey key, Clustering<?> clustering)default booleanselectsFullPartition()Checks if thisReadQueryselects full partitions, that is it has no filtering on clustering or regular columns.default booleanselectsKey(DecoratedKey key)PartitionRangeReadQuerywithUpdatedLimit(DataLimits newLimits)Creates a newPartitionRangeReadQuerywith the updated limits.PartitionRangeReadQuerywithUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange)Creates a newPartitionRangeReadQuerywith the updated limits and data range.-
Methods inherited from interface org.apache.cassandra.db.ReadQuery
columnFilter, execute, executeInternal, executeLocally, executionController, isEmpty, limits, maybeValidateIndex, metadata, nowInSec, rowFilter, trackWarnings
-
-
-
-
Method Detail
-
create
static ReadQuery create(TableMetadata table, int nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange)
-
dataRange
DataRange dataRange()
-
withUpdatedLimit
PartitionRangeReadQuery withUpdatedLimit(DataLimits newLimits)
Creates a newPartitionRangeReadQuerywith the updated limits.- Parameters:
newLimits- the new limits- Returns:
- the new
PartitionRangeReadQuery
-
withUpdatedLimitsAndDataRange
PartitionRangeReadQuery withUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange)
Creates a newPartitionRangeReadQuerywith the updated limits and data range.- Parameters:
newLimits- the new limits- Returns:
- the new
PartitionRangeReadQuery
-
getPager
default QueryPager getPager(PagingState pagingState, ProtocolVersion protocolVersion)
Description copied from interface:ReadQueryReturns a pager for the query.
-
selectsKey
default boolean selectsKey(DecoratedKey key)
- 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
default boolean selectsClustering(DecoratedKey key, Clustering<?> clustering)
- 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.
-
-