public abstract class AbstractReadExecutor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractReadExecutor.NeverSpeculatingReadExecutor |
Modifier and Type | Field and Description |
---|---|
protected ColumnFamilyStore |
cfs |
protected ReadCommand |
command |
protected DigestResolver<EndpointsForToken,ReplicaPlan.ForTokenRead> |
digestResolver |
protected ReadCallback<EndpointsForToken,ReplicaPlan.ForTokenRead> |
handler |
protected long |
queryStartNanoTime |
protected ReadRepair<EndpointsForToken,ReplicaPlan.ForTokenRead> |
readRepair |
protected PartitionIterator |
result |
protected TraceState |
traceState |
Modifier and Type | Method and Description |
---|---|
void |
awaitReadRepair() |
void |
awaitResponses()
Wait for the CL to be satisfied by responses
|
void |
executeAsync()
send the initial set of requests
|
DecoratedKey |
getKey() |
static AbstractReadExecutor |
getReadExecutor(SinglePartitionReadCommand command,
ConsistencyLevel consistencyLevel,
long queryStartNanoTime) |
ReadRepair<EndpointsForToken,ReplicaPlan.ForTokenRead> |
getReadRepair() |
PartitionIterator |
getResult() |
protected void |
makeDigestRequests(java.lang.Iterable<Replica> replicas) |
protected void |
makeFullDataRequests(ReplicaCollection<?> replicas) |
protected void |
makeTransientDataRequests(java.lang.Iterable<Replica> replicas) |
void |
maybeSendAdditionalDataRequests() |
abstract void |
maybeTryAdditionalReplicas()
Perform additional requests if it looks like the original will time out.
|
void |
setResult(PartitionIterator result) |
protected final ReadCommand command
protected final ReadRepair<EndpointsForToken,ReplicaPlan.ForTokenRead> readRepair
protected final DigestResolver<EndpointsForToken,ReplicaPlan.ForTokenRead> digestResolver
protected final ReadCallback<EndpointsForToken,ReplicaPlan.ForTokenRead> handler
protected final TraceState traceState
protected final ColumnFamilyStore cfs
protected final long queryStartNanoTime
protected volatile PartitionIterator result
public DecoratedKey getKey()
public ReadRepair<EndpointsForToken,ReplicaPlan.ForTokenRead> getReadRepair()
protected void makeFullDataRequests(ReplicaCollection<?> replicas)
protected void makeTransientDataRequests(java.lang.Iterable<Replica> replicas)
protected void makeDigestRequests(java.lang.Iterable<Replica> replicas)
public abstract void maybeTryAdditionalReplicas()
public void executeAsync()
public static AbstractReadExecutor getReadExecutor(SinglePartitionReadCommand command, ConsistencyLevel consistencyLevel, long queryStartNanoTime) throws UnavailableException
UnavailableException
public void setResult(PartitionIterator result)
public void awaitResponses() throws ReadTimeoutException
ReadTimeoutException
public void awaitReadRepair() throws ReadTimeoutException
ReadTimeoutException
public void maybeSendAdditionalDataRequests()
public PartitionIterator getResult() throws ReadFailureException, ReadTimeoutException
Copyright © 2009-2021 The Apache Software Foundation