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.Serializer
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind
EMPTY_VALUES_ARRAY, kind, values
EMPTY, 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, unsharedHeapSizeExcludingData
dataSize, digest, equals, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, make, toCQLString, toString, unsharedHeapSizeExcludingData
dataSize, digest, get, getRawValues, kind, size
unsharedHeapSize
clustering
public ClusteringPrefix minimize()
ClusteringPrefix
ByteBufferUtil.minimalBufferFor(ByteBuffer)
),
this will return a copy of the prefix with minimized values, otherwise it returns itself.minimize
in interface ClusteringPrefix
Copyright © 2009-2022 The Apache Software Foundation