public class BufferClustering extends AbstractBufferClusteringPrefix implements Clustering
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.SerializerClusteringPrefix.Deserializer, ClusteringPrefix.KindEMPTY_VALUES_ARRAY, kind, valuesEMPTY, EMPTY_SIZE, serializer, STATIC_CLUSTERING| Modifier and Type | Method and Description |
|---|---|
ClusteringPrefix |
minimize()
If the prefix contains byte buffers that can be minimized (see
ByteBufferUtil.minimalBufferFor(ByteBuffer)),
this will return a copy of the prefix with minimized values, otherwise it returns itself. |
clustering, get, getRawValues, kind, size, unsharedHeapSize, unsharedHeapSizeExcludingDatadataSize, digest, equals, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcopy, make, toCQLString, toString, unsharedHeapSizeExcludingDatadataSize, digest, get, getRawValues, kind, serializeAsPartitionKey, sizeunsharedHeapSizeclusteringpublic ClusteringPrefix minimize()
ClusteringPrefixByteBufferUtil.minimalBufferFor(ByteBuffer)),
this will return a copy of the prefix with minimized values, otherwise it returns itself.minimize in interface ClusteringPrefixCopyright © 2009-2020 The Apache Software Foundation