public class Bounds<T extends RingPosition> extends AbstractBounds<T>
AbstractBounds.AbstractBoundsSerializer
left, partitioner, right, serializer
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T position) |
boolean |
equals(java.lang.Object o) |
protected java.lang.String |
getClosingString() |
protected java.lang.String |
getOpeningString() |
boolean |
intersects(Bounds<T> that) |
static Bounds<RowPosition> |
makeRowBounds(Token left,
Token right,
IPartitioner partitioner)
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.
|
AbstractBounds<RowPosition> |
toRowBounds()
Transform this abstract bounds to equivalent covering bounds of row positions.
|
java.lang.String |
toString() |
AbstractBounds<Token> |
toTokenBounds()
Transform this abstract bounds to a token abstract bounds.
|
java.util.List<? extends AbstractBounds<T>> |
unwrap() |
AbstractBounds<T> |
withNewRight(T newRight) |
getString, hashCode, intersects
public boolean contains(T position)
contains
in class AbstractBounds<T extends RingPosition>
public Pair<AbstractBounds<T>,AbstractBounds<T>> split(T position)
AbstractBounds
split
in class AbstractBounds<T extends RingPosition>
public java.util.List<? extends AbstractBounds<T>> unwrap()
unwrap
in class AbstractBounds<T extends RingPosition>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getOpeningString()
getOpeningString
in class AbstractBounds<T extends RingPosition>
protected java.lang.String getClosingString()
getClosingString
in class AbstractBounds<T extends RingPosition>
public static Bounds<RowPosition> makeRowBounds(Token left, Token right, IPartitioner partitioner)
public AbstractBounds<RowPosition> toRowBounds()
AbstractBounds
toRowBounds
in class AbstractBounds<T extends RingPosition>
public AbstractBounds<Token> toTokenBounds()
AbstractBounds
toTokenBounds
in class AbstractBounds<T extends RingPosition>
public AbstractBounds<T> withNewRight(T newRight)
withNewRight
in class AbstractBounds<T extends RingPosition>
Copyright © 2013 The Apache Software Foundation