Package org.apache.cassandra.db
Class AbstractOnHeapClusteringPrefix<V>
java.lang.Object
org.apache.cassandra.db.AbstractOnHeapClusteringPrefix<V>
- All Implemented Interfaces:
IMeasurableMemory,Clusterable<V>,ClusteringPrefix<V>
- Direct Known Subclasses:
AbstractArrayClusteringPrefix,AbstractBufferClusteringPrefix
public abstract class AbstractOnHeapClusteringPrefix<V>
extends Object
implements ClusteringPrefix<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.db.ClusteringPrefix
ClusteringPrefix.Deserializer, ClusteringPrefix.Kind, ClusteringPrefix.Serializer -
Field Summary
FieldsFields inherited from interface org.apache.cassandra.db.ClusteringPrefix
serializer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.ClusteringPrefix
accessor, asEndBound, asStartBound, bufferAt, clusteringString, dataSize, digest, getBufferArray, isBottom, isEmpty, isTop, retainable, serializeAsPartitionKey, stringAt, toString, validate, validateMethods inherited from interface org.apache.cassandra.cache.IMeasurableMemory
unsharedHeapSize
-
Field Details
-
kind
-
values
-
-
Constructor Details
-
AbstractOnHeapClusteringPrefix
-
-
Method Details
-
kind
- Specified by:
kindin interfaceClusteringPrefix<V>
-
clustering
- Specified by:
clusteringin interfaceClusterable<V>
-
size
public int size()Description copied from interface:ClusteringPrefixThe number of values in this prefix. There can't be more values that the this is a prefix of has of clustering columns.- Specified by:
sizein interfaceClusteringPrefix<V>- Returns:
- the number of values in this prefix.
-
get
Description copied from interface:ClusteringPrefixRetrieves the ith value of this prefix.- Specified by:
getin interfaceClusteringPrefix<V>- Parameters:
i- the index of the value to retrieve. Must be such that0 <= i < size().- Returns:
- the ith value of this prefix. Note that a value can be
null.
-
getRawValues
Description copied from interface:ClusteringPrefixThe values of this prefix as an array.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()andClusteringPrefix.get(int)unless you actually need an array.- Specified by:
getRawValuesin interfaceClusteringPrefix<V>- Returns:
- the values for this prefix as an array.
-
hashCode
public int hashCode() -
equals
-