Package org.apache.cassandra.db
Interface ClusteringBound<V>
-
- All Superinterfaces:
Clusterable<V>
,ClusteringBoundOrBoundary<V>
,ClusteringPrefix<V>
,IMeasurableMemory
- All Known Implementing Classes:
ArrayClusteringBound
,BufferClusteringBound
public interface ClusteringBound<V> extends ClusteringBoundOrBoundary<V>
The start or end of a range of clusterings, either inclusive or exclusive.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
ClusteringBoundOrBoundary.Serializer
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.ClusteringPrefix
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind
-
-
Field Summary
Fields Modifier and Type Field Description static ClusteringBound<?>
BOTTOM
The smallest start bound, i.e.static ClusteringBound<?>
TOP
The biggest end bound, i.e.-
Fields inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
serializer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ClusteringPrefix.Kind
boundKind(boolean isStart, boolean isInclusive)
default int
compareTo(ClusteringComparator comparator, java.util.List<java.nio.ByteBuffer> sstableBound)
ClusteringBound<java.nio.ByteBuffer>
copy(AbstractAllocator allocator)
static ClusteringBound<?>
create(ClusteringComparator comparator, boolean isStart, boolean isInclusive, java.lang.Object... values)
static <V> ClusteringBound<V>
create(ClusteringPrefix.Kind kind, ClusteringPrefix<V> from)
static ClusteringBound<?>
exclusiveEndOf(ClusteringPrefix<?> from)
static ClusteringBound<?>
exclusiveStartOf(ClusteringPrefix<?> from)
static ClusteringBound<?>
inclusiveEndOf(ClusteringPrefix<?> from)
static ClusteringBound<?>
inclusiveStartOf(ClusteringPrefix<?> from)
ClusteringBound<V>
invert()
Returns the inverse of the current bound.default boolean
isEnd()
default boolean
isExclusive()
default boolean
isInclusive()
default boolean
isStart()
-
Methods inherited from interface org.apache.cassandra.db.Clusterable
clustering
-
Methods inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
isBoundary, isClose, isOpen, toString, toString
-
Methods inherited from interface org.apache.cassandra.db.ClusteringPrefix
accessor, bufferAt, dataSize, digest, get, getBufferArray, getRawValues, isBottom, isEmpty, isTop, kind, minimize, serializeAsPartitionKey, size, stringAt, validate
-
Methods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
-
-
-
Field Detail
-
BOTTOM
static final ClusteringBound<?> BOTTOM
The smallest start bound, i.e. the one that starts before any row.
-
TOP
static final ClusteringBound<?> TOP
The biggest end bound, i.e. the one that ends after any row.
-
-
Method Detail
-
boundKind
static ClusteringPrefix.Kind boundKind(boolean isStart, boolean isInclusive)
-
invert
ClusteringBound<V> invert()
Description copied from interface:ClusteringBoundOrBoundary
Returns the inverse of the current bound.This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).
- Specified by:
invert
in interfaceClusteringBoundOrBoundary<V>
- Returns:
- the invert of this bound. For instance, if this bound is an exlusive start, this return an inclusive end with the same values.
-
copy
ClusteringBound<java.nio.ByteBuffer> copy(AbstractAllocator allocator)
- Specified by:
copy
in interfaceClusteringBoundOrBoundary<V>
-
isStart
default boolean isStart()
-
isEnd
default boolean isEnd()
-
isInclusive
default boolean isInclusive()
-
isExclusive
default boolean isExclusive()
-
compareTo
default int compareTo(ClusteringComparator comparator, java.util.List<java.nio.ByteBuffer> sstableBound)
-
create
static <V> ClusteringBound<V> create(ClusteringPrefix.Kind kind, ClusteringPrefix<V> from)
-
inclusiveStartOf
static ClusteringBound<?> inclusiveStartOf(ClusteringPrefix<?> from)
-
inclusiveEndOf
static ClusteringBound<?> inclusiveEndOf(ClusteringPrefix<?> from)
-
exclusiveStartOf
static ClusteringBound<?> exclusiveStartOf(ClusteringPrefix<?> from)
-
exclusiveEndOf
static ClusteringBound<?> exclusiveEndOf(ClusteringPrefix<?> from)
-
create
static ClusteringBound<?> create(ClusteringComparator comparator, boolean isStart, boolean isInclusive, java.lang.Object... values)
-
-