public class DataResolver extends ResponseResolver
command, consistency, keyspace, logger, responses| Constructor and Description |
|---|
DataResolver(Keyspace keyspace,
ReadCommand command,
ConsistencyLevel consistency,
int maxResponseCount,
long queryStartNanoTime) |
| 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, preprocesspublic DataResolver(Keyspace keyspace, ReadCommand command, ConsistencyLevel consistency, int maxResponseCount, long queryStartNanoTime)
public PartitionIterator getData()
getData in class ResponseResolverpublic PartitionIterator resolve()
resolve in class ResponseResolverpublic 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 ResponseResolverpublic boolean isDataPresent()
isDataPresent in class ResponseResolverCopyright © 2017 The Apache Software Foundation