public abstract class AbstractBounds<T extends RingPosition>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractBounds.AbstractBoundsSerializer |
Modifier and Type | Field and Description |
---|---|
T |
left |
protected IPartitioner |
partitioner |
T |
right |
static AbstractBounds.AbstractBoundsSerializer |
serializer |
Constructor and Description |
---|
AbstractBounds(T left,
T right,
IPartitioner partitioner) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
contains(T start) |
protected abstract java.lang.String |
getClosingString() |
protected abstract java.lang.String |
getOpeningString() |
java.lang.String |
getString(AbstractType<?> keyValidator) |
int |
hashCode() |
boolean |
intersects(java.lang.Iterable<Range<T>> ranges)
return true if @param range intersects any of the given @param ranges
|
abstract 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.
|
abstract AbstractBounds<RowPosition> |
toRowBounds()
Transform this abstract bounds to equivalent covering bounds of row positions.
|
abstract AbstractBounds<Token> |
toTokenBounds()
Transform this abstract bounds to a token abstract bounds.
|
abstract java.util.List<? extends AbstractBounds<T>> |
unwrap() |
abstract AbstractBounds<T> |
withNewRight(T newRight) |
public static final AbstractBounds.AbstractBoundsSerializer serializer
public final T extends RingPosition left
public final T extends RingPosition right
protected final transient IPartitioner partitioner
public AbstractBounds(T left, T right, IPartitioner partitioner)
public abstract Pair<AbstractBounds<T>,AbstractBounds<T>> split(T position)
public int hashCode()
hashCode
in class java.lang.Object
public boolean intersects(java.lang.Iterable<Range<T>> ranges)
public abstract boolean contains(T start)
public abstract java.util.List<? extends AbstractBounds<T>> unwrap()
public java.lang.String getString(AbstractType<?> keyValidator)
protected abstract java.lang.String getOpeningString()
protected abstract java.lang.String getClosingString()
public abstract AbstractBounds<RowPosition> toRowBounds()
public abstract AbstractBounds<Token> toTokenBounds()
public abstract AbstractBounds<T> withNewRight(T newRight)
Copyright © 2013 The Apache Software Foundation