Package org.apache.cassandra.db
Class BufferClusteringBound
- java.lang.Object
-
- org.apache.cassandra.db.AbstractOnHeapClusteringPrefix<java.nio.ByteBuffer>
-
- org.apache.cassandra.db.AbstractBufferClusteringPrefix
-
- org.apache.cassandra.db.BufferClusteringBoundOrBoundary
-
- org.apache.cassandra.db.BufferClusteringBound
-
- All Implemented Interfaces:
IMeasurableMemory
,Clusterable<java.nio.ByteBuffer>
,ClusteringBound<java.nio.ByteBuffer>
,ClusteringBoundOrBoundary<java.nio.ByteBuffer>
,ClusteringPrefix<java.nio.ByteBuffer>
public class BufferClusteringBound extends BufferClusteringBoundOrBoundary implements ClusteringBound<java.nio.ByteBuffer>
-
-
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, ClusteringPrefix.Serializer
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.db.AbstractBufferClusteringPrefix
EMPTY_VALUES_ARRAY
-
Fields inherited from class org.apache.cassandra.db.AbstractOnHeapClusteringPrefix
kind, values
-
Fields inherited from interface org.apache.cassandra.db.ClusteringBound
BOTTOM, MAX_START, MIN_END, TOP
-
Fields inherited from interface org.apache.cassandra.db.ClusteringBoundOrBoundary
serializer
-
Fields inherited from interface org.apache.cassandra.db.ClusteringPrefix
serializer
-
-
Constructor Summary
Constructors Constructor Description BufferClusteringBound(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusteringBound<java.nio.ByteBuffer>
clone(ByteBufferCloner cloner)
static BufferClusteringBound
create(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
static BufferClusteringBound
exclusiveEndOf(java.nio.ByteBuffer... values)
static BufferClusteringBound
exclusiveStartOf(java.nio.ByteBuffer... values)
static BufferClusteringBound
inclusiveEndOf(java.nio.ByteBuffer... values)
static BufferClusteringBound
inclusiveStartOf(java.nio.ByteBuffer... values)
ClusteringBound<java.nio.ByteBuffer>
invert()
Returns the inverse of the current bound.long
unsharedHeapSize()
-
Methods inherited from class org.apache.cassandra.db.AbstractBufferClusteringPrefix
accessor, getBufferArray, retainable
-
Methods inherited from class org.apache.cassandra.db.AbstractOnHeapClusteringPrefix
clustering, equals, get, getRawValues, hashCode, kind, size
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.Clusterable
clustering
-
Methods inherited from interface org.apache.cassandra.db.ClusteringBound
artificialLowerBound, asEndBound, asStartBound, isArtificial, isEnd, isExclusive, isInclusive, isStart
-
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, clusteringString, dataSize, digest, get, getBufferArray, getRawValues, isBottom, isEmpty, isTop, kind, retainable, serializeAsPartitionKey, size, stringAt, validate, validate
-
-
-
-
Constructor Detail
-
BufferClusteringBound
public BufferClusteringBound(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
-
-
Method Detail
-
unsharedHeapSize
public long unsharedHeapSize()
- Specified by:
unsharedHeapSize
in interfaceIMeasurableMemory
- Returns:
- the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.
-
invert
public ClusteringBound<java.nio.ByteBuffer> 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 interfaceClusteringBound<java.nio.ByteBuffer>
- Specified by:
invert
in interfaceClusteringBoundOrBoundary<java.nio.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
public ClusteringBound<java.nio.ByteBuffer> clone(ByteBufferCloner cloner)
- Specified by:
clone
in interfaceClusteringBound<java.nio.ByteBuffer>
- Specified by:
clone
in interfaceClusteringBoundOrBoundary<java.nio.ByteBuffer>
-
create
public static BufferClusteringBound create(ClusteringPrefix.Kind kind, java.nio.ByteBuffer[] values)
-
inclusiveStartOf
public static BufferClusteringBound inclusiveStartOf(java.nio.ByteBuffer... values)
-
inclusiveEndOf
public static BufferClusteringBound inclusiveEndOf(java.nio.ByteBuffer... values)
-
exclusiveStartOf
public static BufferClusteringBound exclusiveStartOf(java.nio.ByteBuffer... values)
-
exclusiveEndOf
public static BufferClusteringBound exclusiveEndOf(java.nio.ByteBuffer... values)
-
-