public static class Slice.Bound extends AbstractClusteringPrefix
This can be either a start or an end bound, and this can be either inclusive or exclusive.
Modifier and Type | Class and Description |
---|---|
static class |
Slice.Bound.Serializer
Serializer for slice bounds.
|
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind
Modifier and Type | Field and Description |
---|---|
static Slice.Bound |
BOTTOM
The smallest and biggest bound.
|
static Slice.Bound.Serializer |
serializer |
static Slice.Bound |
TOP |
EMPTY_VALUES_ARRAY, kind, values
Modifier | Constructor and Description |
---|---|
protected |
Bound(ClusteringPrefix.Kind kind,
java.nio.ByteBuffer[] values) |
Modifier and Type | Method and Description |
---|---|
static ClusteringPrefix.Kind |
boundKind(boolean isStart,
boolean isInclusive) |
static Slice.Bound |
create(ClusteringComparator comparator,
boolean isStart,
boolean isInclusive,
java.lang.Object... values) |
static Slice.Bound |
create(ClusteringPrefix.Kind kind,
java.nio.ByteBuffer[] values) |
static Slice.Bound |
exclusiveEndOf(java.nio.ByteBuffer... values) |
static Slice.Bound |
exclusiveStartOf(java.nio.ByteBuffer... values) |
static Slice.Bound |
exclusiveStartOf(ClusteringPrefix prefix) |
static Slice.Bound |
inclusiveEndOf(java.nio.ByteBuffer... values) |
static Slice.Bound |
inclusiveEndOf(ClusteringPrefix prefix) |
static Slice.Bound |
inclusiveStartOf(java.nio.ByteBuffer... values) |
static Slice.Bound |
inclusiveStartOf(ClusteringPrefix prefix) |
Slice.Bound |
invert()
Returns the inverse of the current bound.
|
boolean |
isEnd() |
boolean |
isExclusive() |
boolean |
isInclusive() |
boolean |
isStart() |
java.lang.String |
toString(CFMetaData metadata)
Generates a proper string representation of the prefix.
|
java.lang.String |
toString(ClusteringComparator comparator) |
Slice.Bound |
withNewKind(ClusteringPrefix.Kind kind) |
clustering, dataSize, digest, equals, get, getRawValues, hashCode, kind, size, unsharedHeapSize, unsharedHeapSizeExcludingData
public static final Slice.Bound.Serializer serializer
public static final Slice.Bound BOTTOM
public static final Slice.Bound TOP
protected Bound(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
public static Slice.Bound create(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
public static ClusteringPrefix.Kind boundKind(boolean isStart, boolean isInclusive)
public static Slice.Bound inclusiveStartOf(java.nio.ByteBuffer... values)
public static Slice.Bound inclusiveEndOf(java.nio.ByteBuffer... values)
public static Slice.Bound exclusiveStartOf(java.nio.ByteBuffer... values)
public static Slice.Bound exclusiveEndOf(java.nio.ByteBuffer... values)
public static Slice.Bound inclusiveStartOf(ClusteringPrefix prefix)
public static Slice.Bound exclusiveStartOf(ClusteringPrefix prefix)
public static Slice.Bound inclusiveEndOf(ClusteringPrefix prefix)
public static Slice.Bound create(ClusteringComparator comparator, boolean isStart, boolean isInclusive, java.lang.Object... values)
public Slice.Bound withNewKind(ClusteringPrefix.Kind kind)
public boolean isStart()
public boolean isEnd()
public boolean isInclusive()
public boolean isExclusive()
public Slice.Bound invert()
This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).
public java.lang.String toString(CFMetaData metadata)
ClusteringPrefix
metadata
- the metadata for the table the clustering prefix is of.public java.lang.String toString(ClusteringComparator comparator)
Copyright © 2015 The Apache Software Foundation