public interface PartitionRangeReadQuery extends ReadQuery
ReadQuery
for a range of partitions.Modifier and Type | Method and Description |
---|---|
static ReadQuery |
create(TableMetadata table,
int 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 this
ReadQuery 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 new
PartitionRangeReadQuery with the updated limits. |
PartitionRangeReadQuery |
withUpdatedLimitsAndDataRange(DataLimits newLimits,
DataRange newDataRange)
Creates a new
PartitionRangeReadQuery with the updated limits and data range. |
columnFilter, empty, execute, executeInternal, executeLocally, executionController, isEmpty, limits, maybeValidateIndex, metadata, nowInSec, rowFilter
static ReadQuery create(TableMetadata table, int nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DataRange dataRange)
DataRange dataRange()
PartitionRangeReadQuery withUpdatedLimit(DataLimits newLimits)
PartitionRangeReadQuery
with the updated limits.newLimits
- the new limitsPartitionRangeReadQuery
PartitionRangeReadQuery withUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange)
PartitionRangeReadQuery
with the updated limits and data range.newLimits
- the new limitsPartitionRangeReadQuery
default QueryPager getPager(PagingState pagingState, ProtocolVersion protocolVersion)
ReadQuery
default boolean selectsKey(DecoratedKey key)
selectsKey
in interface ReadQuery
default boolean selectsClustering(DecoratedKey key, Clustering<?> clustering)
selectsClustering
in interface ReadQuery
default boolean selectsFullPartition()
ReadQuery
ReadQuery
selects full partitions, that is it has no filtering on clustering or regular columns.selectsFullPartition
in interface ReadQuery
true
if this ReadQuery
selects full partitions, false
otherwise.Copyright © 2009-2022 The Apache Software Foundation