Package org.apache.cassandra.db
Class CachedHashDecoratedKey
- java.lang.Object
-
- org.apache.cassandra.db.DecoratedKey
-
- org.apache.cassandra.db.BufferDecoratedKey
-
- org.apache.cassandra.db.CachedHashDecoratedKey
-
- All Implemented Interfaces:
java.lang.Comparable<PartitionPosition>
,PartitionPosition
,RingPosition<PartitionPosition>
,ByteComparable
,IFilter.FilterKey
public class CachedHashDecoratedKey extends BufferDecoratedKey
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.bytecomparable.ByteComparable
ByteComparable.Version
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.PartitionPosition
PartitionPosition.ForKey, PartitionPosition.Kind, PartitionPosition.RowPositionSerializer
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.db.DecoratedKey
comparator
-
Fields inherited from interface org.apache.cassandra.utils.bytecomparable.ByteComparable
EMPTY
-
Fields inherited from interface org.apache.cassandra.db.PartitionPosition
serializer
-
-
Constructor Summary
Constructors Constructor Description CachedHashDecoratedKey(Token token, java.nio.ByteBuffer key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filterHash(long[] dest)
Places the murmur3 hash of the key in the given long array of size at least two.-
Methods inherited from class org.apache.cassandra.db.BufferDecoratedKey
fromByteComparable, getKey, getKeyLength
-
Methods inherited from class org.apache.cassandra.db.DecoratedKey
asComparableBound, asComparableBytes, compareTo, compareTo, equals, getPartitioner, getToken, hashCode, isMinimum, keyComparableBytes, keyFromByteSource, kind, minValue, retainable, toCQLString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.utils.bytecomparable.ByteComparable
byteComparableAsString
-
Methods inherited from interface org.apache.cassandra.utils.IFilter.FilterKey
filterHashLowerBits
-
-
-
-
Constructor Detail
-
CachedHashDecoratedKey
public CachedHashDecoratedKey(Token token, java.nio.ByteBuffer key)
-
-
Method Detail
-
filterHash
public void filterHash(long[] dest)
Description copied from interface:IFilter.FilterKey
Places the murmur3 hash of the key in the given long array of size at least two.- Specified by:
filterHash
in interfaceIFilter.FilterKey
- Overrides:
filterHash
in classDecoratedKey
-
-