public static class SinglePartitionReadCommand.Group extends java.lang.Object implements ReadQuery
| Modifier and Type | Field and Description |
|---|---|
java.util.List<SinglePartitionReadCommand> |
commands |
| Constructor and Description |
|---|
Group(java.util.List<SinglePartitionReadCommand> commands,
DataLimits limits) |
| Modifier and Type | Method and Description |
|---|---|
PartitionIterator |
execute(ConsistencyLevel consistency,
ClientState clientState)
Executes the query at the provided consistency level.
|
PartitionIterator |
executeInternal(ReadOrderGroup orderGroup)
Execute the query for internal queries (that is, it basically executes the query locally).
|
QueryPager |
getPager(PagingState pagingState,
int protocolVersion)
Returns a pager for the query.
|
DataLimits |
limits()
The limits for the query.
|
CFMetaData |
metadata() |
int |
nowInSec() |
static SinglePartitionReadCommand.Group |
one(SinglePartitionReadCommand command) |
boolean |
selectsClustering(DecoratedKey key,
Clustering clustering) |
boolean |
selectsKey(DecoratedKey key) |
ReadOrderGroup |
startOrderGroup()
Starts a new read operation.
|
java.lang.String |
toString() |
public final java.util.List<SinglePartitionReadCommand> commands
public Group(java.util.List<SinglePartitionReadCommand> commands, DataLimits limits)
public static SinglePartitionReadCommand.Group one(SinglePartitionReadCommand command)
public PartitionIterator execute(ConsistencyLevel consistency, ClientState clientState) throws RequestExecutionException
ReadQueryexecute in interface ReadQueryconsistency - the consistency level to achieve for the query.clientState - the ClientState for the query. In practice, this can be null unless
consistency is a serial consistency.RequestExecutionExceptionpublic int nowInSec()
public DataLimits limits()
ReadQuerypublic CFMetaData metadata()
public ReadOrderGroup startOrderGroup()
ReadQuery
This must be called before executeInternal and passed to it to protect the read.
The returned object must be closed on all path and it is thus strongly advised to
use it in a try-with-ressource construction.
startOrderGroup in interface ReadQueryReadQuery.public PartitionIterator executeInternal(ReadOrderGroup orderGroup)
ReadQueryexecuteInternal in interface ReadQueryorderGroup - the ReadOrderGroup protecting the read.public QueryPager getPager(PagingState pagingState, int protocolVersion)
ReadQuerypublic boolean selectsKey(DecoratedKey key)
selectsKey in interface ReadQuerypublic boolean selectsClustering(DecoratedKey key, Clustering clustering)
selectsClustering in interface ReadQuerypublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016 The Apache Software Foundation