Package org.apache.cassandra.db
Interface PartitionRangeReadQuery
-
- All Superinterfaces:
ReadQuery
- All Known Implementing Classes:
PartitionRangeReadCommand
,PartitionRangeReadCommand.VirtualTablePartitionRangeReadCommand
public interface PartitionRangeReadQuery extends ReadQuery
AReadQuery
for a range of partitions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ReadQuery
create(TableMetadata table, long nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange)
DataRange
dataRange()
default QueryPager
getPager(PagingState pagingState, ProtocolVersion protocolVersion)
Returns a pager for the query.default boolean
selectsClustering(DecoratedKey key, Clustering<?> clustering)
default boolean
selectsFullPartition()
Checks if thisReadQuery
selects full partitions, that is it has no filtering on clustering or regular columns.default boolean
selectsKey(DecoratedKey key)
PartitionRangeReadQuery
withUpdatedLimit(DataLimits newLimits)
Creates a newPartitionRangeReadQuery
with the updated limits.PartitionRangeReadQuery
withUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange)
Creates a newPartitionRangeReadQuery
with the updated limits and data range.-
Methods inherited from interface org.apache.cassandra.db.ReadQuery
columnFilter, execute, executeInternal, executeLocally, executionController, isEmpty, isTopK, limits, maybeValidateIndex, metadata, nowInSec, rowFilter, trackWarnings
-
-
-
-
Method Detail
-
create
static ReadQuery create(TableMetadata table, long nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange)
-
dataRange
DataRange dataRange()
-
withUpdatedLimit
PartitionRangeReadQuery withUpdatedLimit(DataLimits newLimits)
Creates a newPartitionRangeReadQuery
with the updated limits.- Parameters:
newLimits
- the new limits- Returns:
- the new
PartitionRangeReadQuery
-
withUpdatedLimitsAndDataRange
PartitionRangeReadQuery withUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange)
Creates a newPartitionRangeReadQuery
with 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:ReadQuery
Returns a pager for the query.
-
selectsKey
default boolean selectsKey(DecoratedKey key)
- Specified by:
selectsKey
in 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:
selectsClustering
in 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:ReadQuery
Checks if thisReadQuery
selects full partitions, that is it has no filtering on clustering or regular columns.- Specified by:
selectsFullPartition
in interfaceReadQuery
- Returns:
true
if thisReadQuery
selects full partitions,false
otherwise.
-
-