Class CompositePartitionKey
- Namespace
- Excalibur.Data.CloudNative
- Assembly
- Excalibur.Data.Abstractions.dll
Represents a composite partition key with multiple components.
public sealed class CompositePartitionKey : IPartitionKey
- Inheritance
-
CompositePartitionKey
- Implements
- Inherited Members
Remarks
Used for hierarchical partitioning strategies such as tenant + aggregate type.
Constructors
CompositePartitionKey(string, string, params string[])
Initializes a new instance of the CompositePartitionKey class.
public CompositePartitionKey(string path, string separator, params string[] components)
Parameters
pathstringThe partition key path.
separatorstringThe separator between components (default: "#").
componentsstring[]The partition key components.
Properties
Components
Gets the individual components of the composite key.
public IReadOnlyList<string> Components { get; }
Property Value
Path
Gets the partition key path (e.g., "/tenantId" for Cosmos DB).
public string Path { get; }
Property Value
- string
The path expression for the partition key field.
Value
Gets the partition key value.
public string Value { get; }
Property Value
- string
The partition key value as a string.