public class Bounds<T extends RingPosition<T>> extends AbstractBounds<T>
AbstractBounds.AbstractBoundsSerializer<T extends RingPosition<T>>, AbstractBounds.Boundary<T extends RingPosition<T>>left, right, rowPositionSerializer, tokenSerializer| Modifier and Type | Method and Description | 
|---|---|
| boolean | contains(T position) | 
| boolean | equals(java.lang.Object o) | 
| protected java.lang.String | getClosingString() | 
| static <T extends RingPosition<T>> | 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:
 [         ]    [          ] | 
| protected java.lang.String | getOpeningString() | 
| boolean | inclusiveLeft() | 
| boolean | inclusiveRight() | 
| boolean | intersects(Bounds<T> that) | 
| boolean | isEndInclusive() | 
| static <T extends RingPosition<T>> | isInBounds(T token,
          java.lang.Iterable<Bounds<T>> bounds) | 
| boolean | isStartInclusive() | 
| static Bounds<PartitionPosition> | makeRowBounds(Token left,
             Token right)Compute a bounds of keys corresponding to a given bounds of token. | 
| Pair<AbstractBounds<T>,AbstractBounds<T>> | split(T position)Given token T and AbstractBounds ?L,R?, returns Pair(?L,T], (T,R?),
 where ? means that the same type of AbstractBounds is returned as the original. | 
| java.lang.String | toString() | 
| java.util.List<? extends AbstractBounds<T>> | unwrap() | 
| AbstractBounds<T> | withNewRight(T newRight) | 
bounds, bounds, getString, hashCode, intersects, isEmpty, leftBoundary, maxLeft, maxLeft, minRight, minRight, noneStrictlyWrapsAround, rightBoundary, strictlyWrapsAroundpublic boolean contains(T position)
contains in class AbstractBounds<T extends RingPosition<T>>public Pair<AbstractBounds<T>,AbstractBounds<T>> split(T position)
AbstractBoundssplit in class AbstractBounds<T extends RingPosition<T>>public boolean inclusiveLeft()
inclusiveLeft in class AbstractBounds<T extends RingPosition<T>>public boolean inclusiveRight()
inclusiveRight in class AbstractBounds<T extends RingPosition<T>>public java.util.List<? extends AbstractBounds<T>> unwrap()
unwrap in class AbstractBounds<T extends RingPosition<T>>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String getOpeningString()
getOpeningString in class AbstractBounds<T extends RingPosition<T>>protected java.lang.String getClosingString()
getClosingString in class AbstractBounds<T extends RingPosition<T>>public static <T extends RingPosition<T>> boolean isInBounds(T token, java.lang.Iterable<Bounds<T>> bounds)
public boolean isStartInclusive()
isStartInclusive in class AbstractBounds<T extends RingPosition<T>>public boolean isEndInclusive()
isEndInclusive in class AbstractBounds<T extends RingPosition<T>>public static Bounds<PartitionPosition> makeRowBounds(Token left, Token right)
public AbstractBounds<T> withNewRight(T newRight)
withNewRight in class AbstractBounds<T extends RingPosition<T>>public static <T extends RingPosition<T>> java.util.Set<Bounds<T>> getNonOverlappingBounds(java.lang.Iterable<Bounds<T>> bounds)
bounds - unsorted bounds to find overlapsCopyright © 2018 The Apache Software Foundation