public class NativeClustering extends AbstractClusteringPrefix implements Clustering
Clustering.SerializerClusteringPrefix.Deserializer, ClusteringPrefix.KindEMPTY, serializer, STATIC_CLUSTERING| Constructor and Description |
|---|
NativeClustering(NativeAllocator allocator,
OpOrder.Group writeOp,
Clustering clustering) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
get(int i)
Retrieves the ith value of this prefix.
|
java.nio.ByteBuffer[] |
getRawValues()
The values of this prefix as an array.
|
ClusteringPrefix.Kind |
kind() |
int |
size()
The number of values in this prefix.
|
long |
unsharedHeapSize() |
long |
unsharedHeapSizeExcludingData() |
clustering, dataSize, digest, equals, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcopy, make, toCQLString, toStringdataSize, digestclusteringpublic NativeClustering(NativeAllocator allocator, OpOrder.Group writeOp, Clustering clustering)
public ClusteringPrefix.Kind kind()
kind in interface ClusteringPrefixpublic int size()
ClusteringPrefixsize in interface ClusteringPrefixpublic java.nio.ByteBuffer get(int i)
ClusteringPrefixget in interface ClusteringPrefixi - the index of the value to retrieve. Must be such that 0 <= i < size().null.public java.nio.ByteBuffer[] getRawValues()
ClusteringPrefix
Please note that this may or may not require an array creation. So 1) you should *not*
modify the returned array and 2) it's more efficient to use ClusteringPrefix.size() and
ClusteringPrefix.get(int) unless you actually need an array.
getRawValues in interface ClusteringPrefixpublic long unsharedHeapSize()
unsharedHeapSize in interface IMeasurableMemorypublic long unsharedHeapSizeExcludingData()
unsharedHeapSizeExcludingData in interface ClusteringCopyright © 2018 The Apache Software Foundation