public class BufferClustering extends AbstractBufferClusteringPrefix implements Clustering<java.nio.ByteBuffer>
A Clustering
is a ClusteringPrefix
that must always be "complete", i.e. have
as many values as there is clustering columns in the table it is part of. It is the clustering
prefix used by rows.
Note however that while it's size must be equal to the table clustering size, a clustering can have
null
values (this is currently only allowed in COMPACT table for historical reasons, but we
could imagine lifting that limitation if we decide it make sense from a CQL point of view).
Clustering.Serializer
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind
EMPTY_VALUES_ARRAY
kind, values
EMPTY, serializer, STATIC_CLUSTERING
Constructor and Description |
---|
BufferClustering(java.nio.ByteBuffer... values) |
Modifier and Type | Method and Description |
---|---|
static BufferClustering |
make(java.nio.ByteBuffer... values) |
long |
unsharedHeapSize() |
long |
unsharedHeapSizeExcludingData() |
accessor, getBufferArray, minimize
clustering, equals, get, getRawValues, hashCode, kind, size
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, toCQLString, toString
accessor, bufferAt, dataSize, digest, equals, equals, get, getBufferArray, getRawValues, hashCode, isBottom, isEmpty, isTop, kind, minimize, serializeAsPartitionKey, size, stringAt, validate
clustering
public long unsharedHeapSize()
unsharedHeapSize
in interface IMeasurableMemory
public long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData
in interface Clustering<java.nio.ByteBuffer>
public static BufferClustering make(java.nio.ByteBuffer... values)
make
in interface Clustering<java.nio.ByteBuffer>
Copyright © 2009-2021 The Apache Software Foundation