RangePartitionResolver<T> 类
定义
RangePartitionResolver implements partitioning based on the ranges in the Azure Cosmos DB database service. It allows you to distribute requests and data across a number of partitions by implementing PartitionResolver interface.
public class RangePartitionResolver<T extends Comparable<T>> implements PartitionResolver
类型参数
- T
- 继承
构造函数
RangePartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Map<Range<T>, String> partitionMap) |
RangePartitionResolver constructor taking in the PartitionKeyExtractor, a map of Ranges to collection links.
|
方法
resolveForCreate(Object document) |
Resolves the collection for creating the document based on the partition key.
|
resolveForRead(Object partitionKey) |
Resolves the collection for reading/querying the documents based on the partition key.
|