public interface SinglePartitionReadQuery extends ReadQuery
ReadQuery
for a single partition.Modifier and Type | Interface and Description |
---|---|
static class |
SinglePartitionReadQuery.Group<T extends SinglePartitionReadQuery>
Groups multiple single partition read queries.
|
Modifier and Type | Method and Description |
---|---|
ClusteringIndexFilter |
clusteringIndexFilter() |
static SinglePartitionReadQuery |
create(TableMetadata metadata,
int nowInSec,
ColumnFilter columnFilter,
RowFilter rowFilter,
DataLimits limits,
DecoratedKey partitionKey,
ClusteringIndexFilter clusteringIndexFilter)
Creates a new read query on a single partition.
|
static SinglePartitionReadQuery |
create(TableMetadata metadata,
int nowInSec,
DecoratedKey key,
ColumnFilter columnFilter,
ClusteringIndexFilter filter)
Creates a new read query on a single partition.
|
static SinglePartitionReadQuery.Group<? extends SinglePartitionReadQuery> |
createGroup(TableMetadata metadata,
int nowInSec,
ColumnFilter columnFilter,
RowFilter rowFilter,
DataLimits limits,
java.util.List<DecoratedKey> partitionKeys,
ClusteringIndexFilter clusteringIndexFilter) |
SinglePartitionReadQuery |
forPaging(Clustering<?> lastReturned,
DataLimits limits)
Returns a new
SinglePartitionReadQuery suitable to paging from the last returned row. |
default SinglePartitionPager |
getPager(PagingState pagingState,
ProtocolVersion protocolVersion)
Returns a pager for the query.
|
DecoratedKey |
partitionKey()
Returns the key of the partition queried by this
ReadQuery |
default boolean |
selectsClustering(DecoratedKey key,
Clustering<?> clustering) |
default boolean |
selectsKey(DecoratedKey key) |
SinglePartitionReadQuery |
withUpdatedLimit(DataLimits newLimits)
Creates a new
SinglePartitionReadQuery with the specified limits. |
columnFilter, empty, execute, executeInternal, executeLocally, executionController, isEmpty, limits, maybeValidateIndex, metadata, nowInSec, rowFilter, selectsFullPartition
static SinglePartitionReadQuery.Group<? extends SinglePartitionReadQuery> createGroup(TableMetadata metadata, int nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, java.util.List<DecoratedKey> partitionKeys, ClusteringIndexFilter clusteringIndexFilter)
static SinglePartitionReadQuery create(TableMetadata metadata, int nowInSec, DecoratedKey key, ColumnFilter columnFilter, ClusteringIndexFilter filter)
metadata
- the table to query.nowInSec
- the time in seconds to use are "now" for this query.key
- the partition key for the partition to query.columnFilter
- the column filter to use for the query.filter
- the clustering index filter to use for the query.static SinglePartitionReadQuery create(TableMetadata metadata, int nowInSec, ColumnFilter columnFilter, RowFilter rowFilter, DataLimits limits, DecoratedKey partitionKey, ClusteringIndexFilter clusteringIndexFilter)
metadata
- the table to query.nowInSec
- the time in seconds to use are "now" for this query.columnFilter
- the column filter to use for the query.rowFilter
- the row filter to use for the query.limits
- the limits to use for the query.partitionKey
- the partition key for the partition to query.clusteringIndexFilter
- the clustering index filter to use for the query.DecoratedKey partitionKey()
ReadQuery
SinglePartitionReadQuery withUpdatedLimit(DataLimits newLimits)
SinglePartitionReadQuery
with the specified limits.newLimits
- the new limitsSinglePartitionReadQuery
SinglePartitionReadQuery forPaging(Clustering<?> lastReturned, DataLimits limits)
SinglePartitionReadQuery
suitable to paging from the last returned row.lastReturned
- the last row returned by the previous page. The newly created query
will only query row that comes after this (in query order). This can be null
if this
is the first page.limits
- the limits to use for the page to query.default SinglePartitionPager getPager(PagingState pagingState, ProtocolVersion protocolVersion)
ReadQuery
ClusteringIndexFilter clusteringIndexFilter()
default boolean selectsKey(DecoratedKey key)
selectsKey
in interface ReadQuery
default boolean selectsClustering(DecoratedKey key, Clustering<?> clustering)
selectsClustering
in interface ReadQuery
Copyright © 2009-2021 The Apache Software Foundation