Package org.apache.cassandra.locator
Class ReplicaPlan.ForRangeRead
- java.lang.Object
-
- org.apache.cassandra.locator.ReplicaPlan.AbstractReplicaPlan<E,P>
-
- org.apache.cassandra.locator.ReplicaPlan.AbstractForRead<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
- org.apache.cassandra.locator.ReplicaPlan.ForRangeRead
-
- All Implemented Interfaces:
ReplicaPlan<EndpointsForRange,ReplicaPlan.ForRangeRead>,ReplicaPlan.ForRead<EndpointsForRange,ReplicaPlan.ForRangeRead>
- Enclosing interface:
- ReplicaPlan<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>
public static class ReplicaPlan.ForRangeRead extends ReplicaPlan.AbstractForRead<EndpointsForRange,ReplicaPlan.ForRangeRead>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.locator.ReplicaPlan
ReplicaPlan.AbstractForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>, ReplicaPlan.AbstractReplicaPlan<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>, ReplicaPlan.ForPaxosWrite, ReplicaPlan.ForRangeRead, ReplicaPlan.ForRead<E extends Endpoints<E>,P extends ReplicaPlan.ForRead<E,P>>, ReplicaPlan.ForTokenRead, ReplicaPlan.ForWrite, ReplicaPlan.Shared<E extends Endpoints<E>,P extends ReplicaPlan<E,P>>, ReplicaPlan.SharedForRangeRead, ReplicaPlan.SharedForTokenRead
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.locator.ReplicaPlan.AbstractReplicaPlan
consistencyLevel, keyspace, replicationStrategy
-
-
Constructor Summary
Constructors Constructor Description ForRangeRead(Keyspace keyspace, AbstractReplicationStrategy replicationStrategy, ConsistencyLevel consistencyLevel, AbstractBounds<PartitionPosition> range, EndpointsForRange candidates, EndpointsForRange contact, int vnodeCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractBounds<PartitionPosition>range()intvnodeCount()ReplicaPlan.ForRangeReadwithContacts(EndpointsForRange newContact)-
Methods inherited from class org.apache.cassandra.locator.ReplicaPlan.AbstractForRead
firstUncontactedCandidate, lookup, readCandidates, readQuorum, toString
-
Methods inherited from class org.apache.cassandra.locator.ReplicaPlan.AbstractReplicaPlan
consistencyLevel, contacts, keyspace, replicationStrategy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.locator.ReplicaPlan
consistencyLevel, contacts, keyspace, replicationStrategy
-
-
-
-
Constructor Detail
-
ForRangeRead
public ForRangeRead(Keyspace keyspace, AbstractReplicationStrategy replicationStrategy, ConsistencyLevel consistencyLevel, AbstractBounds<PartitionPosition> range, EndpointsForRange candidates, EndpointsForRange contact, int vnodeCount)
-
-
Method Detail
-
range
public AbstractBounds<PartitionPosition> range()
-
vnodeCount
public int vnodeCount()
- Returns:
- number of vnode ranges covered by the range
-
withContacts
public ReplicaPlan.ForRangeRead withContacts(EndpointsForRange newContact)
-
-