Class PrimaryKey.Factory
java.lang.Object
org.apache.cassandra.index.sai.utils.PrimaryKey.Factory
- Enclosing interface:
- PrimaryKey
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(IPartitioner partitioner, ClusteringComparator clusteringComparator) -
Method Summary
Modifier and TypeMethodDescriptionClustering<?>clusteringFromByteComparable(ByteSource byteSource) Create aClusteringfrom aByteSource.create(DecoratedKey partitionKey) Create aPrimaryKeyfor tables without clustering columnscreate(DecoratedKey partitionKey, Clustering<?> clustering) Creates aPrimaryKeythat is fully represented by partition key and clustering.Creates aPrimaryKeythat is represented by aToken.fromComparableBytes(ByteSource byteSource) Create aPrimaryKeyfrom aByteSource.booleanpartitionKeyFromComparableBytes(ByteSource byteSource) Create aDecoratedKeyfrom aByteSource.
-
Constructor Details
-
Factory
-
-
Method Details
-
create
Creates aPrimaryKeythat is represented by aToken.Tokenonly primary keys are used for defining the partition range of a query. -
create
Create aPrimaryKeyfor tables without clustering columns -
create
Creates aPrimaryKeythat is fully represented by partition key and clustering. -
hasClusteringColumns
public boolean hasClusteringColumns() -
fromComparableBytes
Create aPrimaryKeyfrom aByteSource. This should only be used withByteSourceinstances created by calls toPrimaryKey.asComparableBytes(Version). -
partitionKeyFromComparableBytes
Create aDecoratedKeyfrom aByteSource. This is a separate method because of it's use by thePrimaryKeyMapimplementations to create partition keys. -
clusteringFromByteComparable
Create aClusteringfrom aByteSource. This is a separate method because of its use by theWidePrimaryKeyMapto create its clustering keys.
-