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, and this mostly for thrift backward compatibility (in practice, if a value is null,
all of the following ones will be too because that's what thrift allows, but it's never assumed by the
code so we could start generally allowing nulls for clustering columns if we wanted to).
Clustering.SerializerClusteringPrefix.Deserializer, ClusteringPrefix.KindEMPTY_VALUES_ARRAY, kind, valuesEMPTY, serializer, STATIC_CLUSTERING| Constructor and Description |
|---|
BufferClustering(java.nio.ByteBuffer... values) |
| 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, 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-2022 The Apache Software Foundation