RangePartitionResolver Class

 

Updated: June 30, 2017

Note: This API is now obsolete.

RangePartitionResolver implements partitioning in Azure DocumentDB database service by using a partition map of ranges of values to a collection self-link. This works well when the data is naturally ordered and commonly queried upon using ranges of values, e.g., for time series data or alphabetical ranges of strings.

Namespace:   Microsoft.Azure.Documents.Partitioning
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

SystemObject
  Microsoft.Azure.Documents.PartitioningRangePartitionResolver

No code example is currently available or this language may not be supported.

Type Parameters

T

The type of value to use for range partitioning.

NameDescription
System_CAPS_pubmethodRangePartitionResolver

Initializes a new instance of the HashPartitionResolver in the Azure DocumentDB database service using the specified partitionKeyExtractor value.

System_CAPS_pubmethodRangePartitionResolver

Initializes a new instance of the RangePartitionResolver class in the Azure DocumentDB database service using the specified partitionKeyPropertyName value.

NameDescription
System_CAPS_pubproperty

Gets the function to extract the partition key from any object in the Azure DocumentDB database service.

System_CAPS_pubproperty

The name of the property in the document to execute the hashing on in the Azure DocumentDB database service.

System_CAPS_pubproperty

Gets the map from range to collection-link that is used for partitioning requests in the Azure DocumentDB database service.

NameDescription
System_CAPS_pubmethodEquals

(Inherited from Object.)

System_CAPS_protmethodFinalize

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode

(Inherited from Object.)

System_CAPS_pubmethodGetPartitionKey

Extracts the partition key from the specified document using the specified property or function in order of preference in the Azure DocumentDB database service.

System_CAPS_pubmethodGetType

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone

(Inherited from Object.)

System_CAPS_pubmethodResolveForCreate

Given a partition key, returns the correct collection self-link for creating a document using the range partition map in the Azure DocumentDB database service.

System_CAPS_pubmethodResolveForRead

Given a partition key, returns a list of collection links to read from using the range partition map in the Azure DocumentDB database service.

System_CAPS_pubmethodToString

(Inherited from Object.)

NameDescription
System_CAPS_pubmethodIsDefined

Determines if a certain property is defined or not. (Defined by TypeCheckFunctionsExtensions.)

System_CAPS_pubmethodIsNull

Determines if a certain property is null or not. (Defined by TypeCheckFunctionsExtensions.)

System_CAPS_pubmethodIsPrimitive

Determines if a certain property is of premitive JSON type. (Defined by TypeCheckFunctionsExtensions.)

Support for IPartitionResolver based classes is now obsolete. It's recommended that you use Partitioned Collections for higher storage and throughput.

In range partitioning, partitions are assigned based on whether the partition key is within a certain range. The RangePartitionResolver class helps you maintain a mapping between a Range and collection self-link.

Range is a simple class for specifying ranges of any types that implement IComparable and IEquatable like strings or numbers. For reads and creates, you can pass in any arbitrary range, and the resolver identifies all the candidate collections by identifying the ranges of the partitions that intersect twith the requested range.

A special case of range partitioning is when the range is just a single discrete value, sometimes called Lookup Partitioning. This is commonly used for partitioning by discrete values like Region or Type or for partitioning tenants in a multi-tenant application.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: