Package org.apache.cassandra.db
Class ArrayClustering
- java.lang.Object
-
- org.apache.cassandra.db.AbstractOnHeapClusteringPrefix<byte[]>
-
- org.apache.cassandra.db.AbstractArrayClusteringPrefix
-
- org.apache.cassandra.db.ArrayClustering
-
- All Implemented Interfaces:
IMeasurableMemory
,Clusterable<byte[]>
,Clustering<byte[]>
,ClusteringPrefix<byte[]>
public class ArrayClustering extends AbstractArrayClusteringPrefix implements Clustering<byte[]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.Clustering
Clustering.Serializer
-
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 long
EMPTY_SIZE
-
Fields inherited from class org.apache.cassandra.db.AbstractArrayClusteringPrefix
EMPTY_VALUES_ARRAY
-
Fields inherited from class org.apache.cassandra.db.AbstractOnHeapClusteringPrefix
kind, values
-
Fields inherited from interface org.apache.cassandra.db.Clustering
EMPTY, serializer, STATIC_CLUSTERING
-
Fields inherited from interface org.apache.cassandra.db.ClusteringPrefix
serializer
-
-
Constructor Summary
Constructors Constructor Description ArrayClustering(byte[]... values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArrayClustering
make(byte[]... values)
long
unsharedHeapSize()
long
unsharedHeapSizeExcludingData()
-
Methods inherited from class org.apache.cassandra.db.AbstractArrayClusteringPrefix
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.Clustering
asEndBound, asStartBound, clone, toCQLString, 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
-
-
-
-
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.
-
unsharedHeapSizeExcludingData
public long unsharedHeapSizeExcludingData()
- Specified by:
unsharedHeapSizeExcludingData
in interfaceClustering<byte[]>
-
make
public static ArrayClustering make(byte[]... values)
-
-