Package org.apache.cassandra.db
Class AbstractArrayClusteringPrefix
- java.lang.Object
-
- org.apache.cassandra.db.AbstractOnHeapClusteringPrefix<byte[]>
-
- org.apache.cassandra.db.AbstractArrayClusteringPrefix
-
- All Implemented Interfaces:
IMeasurableMemory
,Clusterable<byte[]>
,ClusteringPrefix<byte[]>
- Direct Known Subclasses:
ArrayClustering
,ArrayClusteringBoundOrBoundary
public abstract class AbstractArrayClusteringPrefix extends AbstractOnHeapClusteringPrefix<byte[]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.ClusteringPrefix
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind, ClusteringPrefix.Serializer
-
-
Field Summary
Fields Modifier and Type Field Description static byte[][]
EMPTY_VALUES_ARRAY
-
Fields inherited from class org.apache.cassandra.db.AbstractOnHeapClusteringPrefix
kind, values
-
Fields inherited from interface org.apache.cassandra.db.ClusteringPrefix
serializer
-
-
Constructor Summary
Constructors Constructor Description AbstractArrayClusteringPrefix(ClusteringPrefix.Kind kind, byte[][] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueAccessor<byte[]>
accessor()
java.nio.ByteBuffer[]
getBufferArray()
ClusteringPrefix<byte[]>
retainable()
Return the key in a form that can be retained for longer-term use.-
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.ClusteringPrefix
asEndBound, asStartBound, bufferAt, clusteringString, dataSize, digest, isBottom, isEmpty, isTop, serializeAsPartitionKey, stringAt, toString, validate, validate
-
Methods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
-
-
-
Constructor Detail
-
AbstractArrayClusteringPrefix
public AbstractArrayClusteringPrefix(ClusteringPrefix.Kind kind, byte[][] values)
-
-
Method Detail
-
accessor
public ValueAccessor<byte[]> accessor()
-
getBufferArray
public java.nio.ByteBuffer[] getBufferArray()
-
retainable
public ClusteringPrefix<byte[]> retainable()
Description copied from interface:ClusteringPrefix
Return the key in a form that can be retained for longer-term use. This means extracting keys stored in shared memory (i.e. in memtables) to minimized on-heap versions. If the object is already in minimal form, no action will be taken.
-
-