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, rowFilterstatic 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 limitsPartitionRangeReadQueryPartitionRangeReadQuery withUpdatedLimitsAndDataRange(DataLimits newLimits, DataRange newDataRange)
PartitionRangeReadQuery with the updated limits and data range.newLimits - the new limitsPartitionRangeReadQuerydefault QueryPager getPager(PagingState pagingState, ProtocolVersion protocolVersion)
ReadQuerydefault boolean selectsKey(DecoratedKey key)
selectsKey in interface ReadQuerydefault boolean selectsClustering(DecoratedKey key, Clustering<?> clustering)
selectsClustering in interface ReadQuerydefault boolean selectsFullPartition()
ReadQueryReadQuery selects full partitions, that is it has no filtering on clustering or regular columns.selectsFullPartition in interface ReadQuerytrue if this ReadQuery selects full partitions, false otherwise.Copyright © 2009-2020 The Apache Software Foundation