Package org.apache.cassandra.db
Class NativeDecoratedKey
- java.lang.Object
-
- org.apache.cassandra.db.DecoratedKey
-
- org.apache.cassandra.db.NativeDecoratedKey
-
- All Implemented Interfaces:
java.lang.Comparable<PartitionPosition>
,PartitionPosition
,RingPosition<PartitionPosition>
,ByteComparable
,IFilter.FilterKey
public class NativeDecoratedKey extends DecoratedKey
-
-
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 NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, byte[] keyBytes)
NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, java.nio.ByteBuffer key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getKey()
int
getKeyLength()
protected ByteSource
keyComparableBytes(ByteComparable.Version version)
-
Methods inherited from class org.apache.cassandra.db.DecoratedKey
asComparableBound, asComparableBytes, compareTo, compareTo, equals, filterHash, getPartitioner, getToken, hashCode, isMinimum, 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
-
NativeDecoratedKey
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, java.nio.ByteBuffer key)
-
NativeDecoratedKey
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, byte[] keyBytes)
-
-
Method Detail
-
getKey
public java.nio.ByteBuffer getKey()
- Specified by:
getKey
in classDecoratedKey
-
getKeyLength
public int getKeyLength()
- Specified by:
getKeyLength
in classDecoratedKey
-
keyComparableBytes
protected ByteSource keyComparableBytes(ByteComparable.Version version)
- Overrides:
keyComparableBytes
in classDecoratedKey
-
-