Package org.apache.cassandra.db
Class NativeDecoratedKey
java.lang.Object
org.apache.cassandra.db.DecoratedKey
org.apache.cassandra.db.NativeDecoratedKey
- All Implemented Interfaces:
Comparable<PartitionPosition>,PartitionPosition,RingPosition<PartitionPosition>,ByteComparable,IFilter.FilterKey
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.bytecomparable.ByteComparable
ByteComparable.VersionNested 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
comparatorFields inherited from interface org.apache.cassandra.utils.bytecomparable.ByteComparable
EMPTYFields inherited from interface org.apache.cassandra.db.PartitionPosition
serializer -
Constructor Summary
ConstructorsConstructorDescriptionNativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, byte[] keyBytes) NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()intprotected ByteSourcekeyComparableBytes(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.bytecomparable.ByteComparable
byteComparableAsStringMethods inherited from interface org.apache.cassandra.utils.IFilter.FilterKey
filterHashLowerBits
-
Constructor Details
-
NativeDecoratedKey
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, ByteBuffer key) -
NativeDecoratedKey
public NativeDecoratedKey(Token token, NativeAllocator allocator, OpOrder.Group writeOp, byte[] keyBytes)
-
-
Method Details
-
getKey
- Specified by:
getKeyin classDecoratedKey
-
getKeyLength
public int getKeyLength()- Specified by:
getKeyLengthin classDecoratedKey
-
keyComparableBytes
- Overrides:
keyComparableBytesin classDecoratedKey
-