Uses of Interface
org.apache.cassandra.dht.RingPosition
-
Packages that use RingPosition Package Description org.apache.cassandra.db org.apache.cassandra.dht org.apache.cassandra.locator -
-
Uses of RingPosition in org.apache.cassandra.db
Subinterfaces of RingPosition in org.apache.cassandra.db Modifier and Type Interface Description interfacePartitionPositionClasses in org.apache.cassandra.db that implement RingPosition Modifier and Type Class Description classBufferDecoratedKeyclassCachedHashDecoratedKeyclassDecoratedKeyRepresents a decorated key, handy for certain operations where just working with strings gets slow.classNativeDecoratedKeyclassPreHashedDecoratedKey -
Uses of RingPosition in org.apache.cassandra.dht
Classes in org.apache.cassandra.dht with type parameters of type RingPosition Modifier and Type Class Description classAbstractBounds<T extends RingPosition<T>>static classAbstractBounds.AbstractBoundsSerializer<T extends RingPosition<T>>static classAbstractBounds.Boundary<T extends RingPosition<T>>classBounds<T extends RingPosition<T>>AbstractBounds containing both its endpoints: [left, right].classExcludingBounds<T extends RingPosition<T>>AbstractBounds containing neither of its endpoints: (left, right).classIncludingExcludingBounds<T extends RingPosition<T>>AbstractBounds containing only its left endpoint: [left, right).classRange<T extends RingPosition<T>>A representation of the range that a node is responsible for on the DHT ring.interfaceRingPosition<C extends RingPosition<C>>Interface representing a position on the ring.Classes in org.apache.cassandra.dht that implement RingPosition Modifier and Type Class Description static classByteOrderedPartitioner.BytesTokenclassLocalPartitioner.LocalTokenstatic classMurmur3Partitioner.LongTokenstatic classOrderPreservingPartitioner.StringTokenstatic classRandomPartitioner.BigIntegerTokenclassTokenstatic classToken.KeyBoundFields in org.apache.cassandra.dht declared as RingPosition Modifier and Type Field Description TAbstractBounds.Boundary. boundaryTAbstractBounds. leftTAbstractBounds. rightMethods in org.apache.cassandra.dht with type parameters of type RingPosition Modifier and Type Method Description static <T extends RingPosition<T>>
voidRange. assertNormalized(java.util.List<Range<T>> ranges)static <T extends RingPosition<T>>
AbstractBounds<T>AbstractBounds. bounds(AbstractBounds.Boundary<T> min, AbstractBounds.Boundary<T> max)static <T extends RingPosition<T>>
AbstractBounds<T>AbstractBounds. bounds(T min, boolean inclusiveMin, T max, boolean inclusiveMax)static <T extends RingPosition<T>>
booleanRange. contains(T left, T right, T point)static <T extends RingPosition<T>>
java.util.Set<Bounds<T>>Bounds. getNonOverlappingBounds(java.lang.Iterable<Bounds<T>> bounds)Retrieves non-overlapping bounds for the list of input bounds Assume we have the following bounds (brackets representing left/right bound): [ ] [ ] [ ] [ ] [ ] [ ] This method will return the following bounds: [ ] [ ]static <T extends RingPosition<T>>
booleanAbstractBounds. isEmpty(AbstractBounds.Boundary<T> left, AbstractBounds.Boundary<T> right)static <T extends RingPosition<T>>
booleanBounds. isInBounds(T token, java.lang.Iterable<Bounds<T>> bounds)static <T extends RingPosition<T>>
booleanRange. isInRanges(T token, java.lang.Iterable<Range<T>> ranges)static <T extends RingPosition<T>>
booleanRange. isWrapAround(T left, T right)Tells if the given range is a wrap around.static <T extends RingPosition<T>>
AbstractBounds.Boundary<T>AbstractBounds. maxLeft(AbstractBounds.Boundary<T> left1, AbstractBounds.Boundary<T> left2)static <T extends RingPosition<T>>
AbstractBounds.Boundary<T>AbstractBounds. maxLeft(AbstractBounds.Boundary<T> left1, T left2, boolean isInclusiveLeft2)static <T extends RingPosition<T>>
AbstractBounds.Boundary<T>AbstractBounds. minRight(AbstractBounds.Boundary<T> right1, AbstractBounds.Boundary<T> right2)static <T extends RingPosition<T>>
AbstractBounds.Boundary<T>AbstractBounds. minRight(AbstractBounds.Boundary<T> right1, T right2, boolean isInclusiveRight2)static <T extends RingPosition<T>>
booleanAbstractBounds. noneStrictlyWrapsAround(java.util.Collection<AbstractBounds<T>> bounds)static <T extends RingPosition<T>>
java.util.List<Range<T>>Range. normalize(java.util.Collection<Range<T>> ranges)static <T extends RingPosition<T>>
java.util.Set<Range<T>>Range. rangeSet(Range<T> range)static <T extends RingPosition<T>>
java.util.Set<Range<T>>Range. rangeSet(Range<T>... ranges)static <T extends RingPosition<T>>
java.util.List<Range<T>>Range. sort(java.util.Collection<Range<T>> ranges)static <T extends RingPosition<T>>
booleanAbstractBounds. strictlyWrapsAround(T left, T right)Whetherleftandrightforms a wrapping interval, that is if unwrapping wouldn't be a no-op.static <T extends RingPosition<T>>
java.util.Set<Range<T>>Range. subtract(java.util.Collection<Range<T>> ranges, java.util.Collection<Range<T>> subtract) -
Uses of RingPosition in org.apache.cassandra.locator
Methods in org.apache.cassandra.locator with parameters of type RingPosition Modifier and Type Method Description ReplicaAbstractReplicationStrategy. getLocalReplicaFor(RingPosition<?> searchPosition)EndpointsForRangeAbstractReplicationStrategy. getNaturalReplicas(RingPosition<?> searchPosition)EndpointsForRangeLocalStrategy. getNaturalReplicas(RingPosition<?> searchPosition)We need to override this even if we override calculateNaturalReplicas, because the default implementation depends on token calculations but LocalStrategy may be used before tokens are set up.EndpointsForTokenAbstractReplicationStrategy. getNaturalReplicasForToken(RingPosition<?> searchPosition)get the (possibly cached) endpoints that should store the given Token.
-