Class ClusteringKeyAttribute
Declares an ordered-read member — "I read this sorted, within the key" — and each store materializes the declaration as well as it can: Cassandra as a real clustering key (rows physically ordered in the partition), relational stores and MongoDB as a multi-column index with the declared directions, Cosmos DB as a composite index on the container's policy (two or more members). The semantics of queries never change; only the plan does.
[AttributeUsage(AttributeTargets.Property)]
public sealed class ClusteringKeyAttribute : Attribute
- Inheritance
-
ClusteringKeyAttribute
- Inherited Members
Properties
Descending
Whether the clustering order is descending.
public bool Descending { get; set; }
Property Value
Order
The member's position among the clustering keys.
public int Order { get; set; }