public class DataResolver extends ResponseResolver
command, consistency, keyspace, logger, responses
Constructor and Description |
---|
DataResolver(Keyspace keyspace,
ReadCommand command,
ConsistencyLevel consistency,
int maxResponseCount) |
Modifier and Type | Method and Description |
---|---|
void |
compareResponses()
Compares received responses, potentially triggering a digest mismatch (for a digest resolver) and read-repairs
(for a data resolver).
|
PartitionIterator |
getData() |
boolean |
isDataPresent() |
PartitionIterator |
resolve() |
getMessages, preprocess
public DataResolver(Keyspace keyspace, ReadCommand command, ConsistencyLevel consistency, int maxResponseCount)
public PartitionIterator getData()
getData
in class ResponseResolver
public PartitionIterator resolve()
resolve
in class ResponseResolver
public void compareResponses()
ResponseResolver
This is functionally equivalent to calling ResponseResolver.resolve()
and consuming the result, but can be slightly more
efficient in some case due to the fact that we don't care about the result itself. This is used when doing
asynchronous read-repairs.
compareResponses
in class ResponseResolver
public boolean isDataPresent()
isDataPresent
in class ResponseResolver
Copyright © 2017 The Apache Software Foundation