@Deprecated public class RangePartitionResolver<T extends Comparable<T>> extends Object implements PartitionResolver
| Constructor and Description |
|---|
RangePartitionResolver(PartitionKeyExtractor partitionKeyExtractor,
Map<Range<T>,String> partitionMap)
Deprecated.
RangePartitionResolver constructor taking in the PartitionKeyExtractor, a map of Ranges to collection links.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolveForCreate(Object document)
Deprecated.
Resolves the collection for creating the document based on the partition key.
|
Iterable<String> |
resolveForRead(Object partitionKey)
Deprecated.
Resolves the collection for reading/querying the documents based on the partition key.
|
public RangePartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Map<Range<T>,String> partitionMap)
partitionKeyExtractor - an instance of class that implements PartitionKeyExtractor interface.partitionMap - the map of ranges to collection links.public String resolveForCreate(Object document)
resolveForCreate in interface PartitionResolverdocument - the document to be created.public Iterable<String> resolveForRead(Object partitionKey)
resolveForRead in interface PartitionResolverpartitionKey - the partition key value.Copyright © 2018. All rights reserved.