Package org.apache.cassandra.db
Class BufferClusteringBoundary
java.lang.Object
org.apache.cassandra.db.AbstractOnHeapClusteringPrefix<ByteBuffer>
org.apache.cassandra.db.AbstractBufferClusteringPrefix
org.apache.cassandra.db.BufferClusteringBoundOrBoundary
org.apache.cassandra.db.BufferClusteringBoundary
- All Implemented Interfaces:
IMeasurableMemory,Clusterable<ByteBuffer>,ClusteringBoundary<ByteBuffer>,ClusteringBoundOrBoundary<ByteBuffer>,ClusteringPrefix<ByteBuffer>
public class BufferClusteringBoundary
extends BufferClusteringBoundOrBoundary
implements ClusteringBoundary<ByteBuffer>
-
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, ClusteringPrefix.Serializer -
Field Summary
Fields inherited from class org.apache.cassandra.db.AbstractBufferClusteringPrefix
EMPTY_VALUES_ARRAYFields inherited from class org.apache.cassandra.db.AbstractOnHeapClusteringPrefix
kind, valuesFields inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
serializerFields inherited from interface org.apache.cassandra.db.ClusteringPrefix
serializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone(ByteBufferCloner cloner) closeBound(boolean reversed) static ClusteringBoundary<ByteBuffer>create(ClusteringPrefix.Kind kind, ByteBuffer[] values) invert()Returns the inverse of the current bound.openBound(boolean reversed) longMethods inherited from class org.apache.cassandra.db.AbstractBufferClusteringPrefix
accessor, getBufferArray, retainableMethods inherited from class org.apache.cassandra.db.AbstractOnHeapClusteringPrefix
clustering, equals, get, getRawValues, hashCode, kind, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.Clusterable
clusteringMethods inherited from interface org.apache.cassandra.db.ClusteringBoundary
asEndBound, asStartBoundMethods 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, validate
-
Constructor Details
-
BufferClusteringBoundary
-
-
Method Details
-
create
public static ClusteringBoundary<ByteBuffer> create(ClusteringPrefix.Kind kind, ByteBuffer[] values) -
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 interfaceClusteringBoundary<ByteBuffer>- Specified by:
invertin interfaceClusteringBoundOrBoundary<ByteBuffer>- 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<ByteBuffer>
-
openBound
- Specified by:
openBoundin interfaceClusteringBoundary<ByteBuffer>
-
closeBound
- Specified by:
closeBoundin interfaceClusteringBoundary<ByteBuffer>