Package org.apache.cassandra.db
Interface ClusteringBound<V>
- All Superinterfaces:
Clusterable<V>,ClusteringBoundOrBoundary<V>,ClusteringPrefix<V>,IMeasurableMemory
- All Known Implementing Classes:
ArrayClusteringBound,BufferClusteringBound
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.SerializerNested classes/interfaces inherited from interface org.apache.cassandra.db.ClusteringPrefix
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClusteringBound<?>The smallest start bound, i.e.static final ClusteringBound<?>The biggest start bound, i.e.static final ClusteringBound<?>The smallest end bound, i.e.static final ClusteringBound<?>The biggest end bound, i.e.Fields inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
serializer -
Method Summary
Modifier and TypeMethodDescriptiondefault ClusteringBound<V>artificialLowerBound(boolean isReversed) default ClusteringBound<V>Returns this prefix as an end bound.default ClusteringBound<V>Returns this prefix as a start bound.static ClusteringPrefix.KindboundKind(boolean isStart, boolean isInclusive) clone(ByteBufferCloner cloner) static ClusteringBound<?>create(ClusteringComparator comparator, boolean isStart, boolean isInclusive, Object... values) static <V> ClusteringBound<V>create(ClusteringPrefix.Kind kind, ClusteringPrefix<V> from) static <V> ClusteringBound<V>exclusiveEndOf(ClusteringPrefix<V> from) static <V> ClusteringBound<V>exclusiveStartOf(ClusteringPrefix<V> from) static <V> ClusteringBound<V>inclusiveEndOf(ClusteringPrefix<V> from) static <V> ClusteringBound<V>inclusiveStartOf(ClusteringPrefix<V> from) invert()Returns the inverse of the current bound.default booleandefault booleanisEnd()default booleandefault booleandefault booleanisStart()Methods inherited from interface org.apache.cassandra.db.Clusterable
clusteringMethods inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
isBoundary, isClose, isOpen, toString, toStringMethods inherited from interface org.apache.cassandra.db.ClusteringPrefix
accessor, bufferAt, clusteringString, dataSize, digest, get, getBufferArray, getRawValues, isBottom, isEmpty, isTop, kind, retainable, serializeAsPartitionKey, size, stringAt, validate, validateMethods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
Field Details
-
BOTTOM
The smallest start bound, i.e. the one that starts before any row. -
TOP
The biggest end bound, i.e. the one that ends after any row. -
MAX_START
The biggest start bound, i.e. the one that starts after any row. -
MIN_END
The smallest end bound, i.e. the one that end before any row.
-
-
Method Details
-
boundKind
-
invert
ClusteringBound<V> invert()Description copied from interface:ClusteringBoundOrBoundaryReturns the inverse of the current bound.This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).
- Specified by:
invertin 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.
-
clone
- Specified by:
clonein interfaceClusteringBoundOrBoundary<V>
-
isStart
default boolean isStart() -
isEnd
default boolean isEnd() -
isInclusive
default boolean isInclusive() -
isExclusive
default boolean isExclusive() -
isArtificial
default boolean isArtificial() -
artificialLowerBound
-
create
-
inclusiveStartOf
-
inclusiveEndOf
-
exclusiveStartOf
-
exclusiveEndOf
-
create
static ClusteringBound<?> create(ClusteringComparator comparator, boolean isStart, boolean isInclusive, Object... values) -
asStartBound
Description copied from interface:ClusteringPrefixReturns this prefix as a start bound. If this prefix is a bound, just returns it asserting that it is a start bound. If this prefix is a clustering, returns an included start bound. If this prefix is a boundary, returns an open bound of it- Specified by:
asStartBoundin interfaceClusteringPrefix<V>
-
asEndBound
Description copied from interface:ClusteringPrefixReturns this prefix as an end bound. If this prefix is a bound, just returns it asserting that it is an end bound. If this prefix is a clustering, returns an included end bound. In this prefix is a boundary, returns a close bound of it.- Specified by:
asEndBoundin interfaceClusteringPrefix<V>
-