### YamlMime:JavaType uid: "com.microsoft.azure.documentdb.HashPartitionResolver" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver" name: "HashPartitionResolver" nameWithType: "HashPartitionResolver" summary: "HashPartitionResolver implements partitioning based on the value of a hash function, allowing you to evenly distribute requests and data across a number of partitions by implementing PartitionResolver interface in the Azure Cosmos DB database service." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "
public class **HashPartitionResolver**
implements " constructors: - uid: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(com.microsoft.azure.documentdb.PartitionKeyExtractor,java.lang.Iterable)" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks)" name: "HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks)" nameWithType: "HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks)" summary: "HashPartitionResolver constructor taking in the PartitionKeyExtractor and collection links with default number of virtual nodes per collection(128) and default hash generator(MurmurHash3)" parameters: - description: "an instance of class that implements PartitionKeyExtractor interface" name: "partitionKeyExtractor" type: "" - description: "the links of collections participating in partitioning" name: "collectionLinks" type: "<>" syntax: "public HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks)" desc: "HashPartitionResolver constructor taking in the PartitionKeyExtractor and collection links with default number of virtual nodes per collection(128) and default hash generator(MurmurHash3)" - uid: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(com.microsoft.azure.documentdb.PartitionKeyExtractor,java.lang.Iterable,com.microsoft.azure.documentdb.HashGenerator)" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, HashGenerator hashGenerator)" name: "HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, HashGenerator hashGenerator)" nameWithType: "HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, HashGenerator hashGenerator)" summary: "HashPartitionResolver constructor taking in the PartitionKeyExtractor, collection Links, hash generator with default number of virtual nodes per collection(128)" parameters: - description: "an instance of class that implements PartitionKeyExtractor interface" name: "partitionKeyExtractor" type: "" - description: "the links of collections participating in partitioning" name: "collectionLinks" type: "<>" - description: "hash generator used for hashing" name: "hashGenerator" type: "" syntax: "public HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, HashGenerator hashGenerator)" desc: "HashPartitionResolver constructor taking in the PartitionKeyExtractor, collection Links, hash generator with default number of virtual nodes per collection(128)" - uid: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(com.microsoft.azure.documentdb.PartitionKeyExtractor,java.lang.Iterable,int)" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection)" name: "HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection)" nameWithType: "HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection)" summary: "HashPartitionResolver constructor taking in the PartitionKeyExtractor, collection Links, number of virtual nodes per collection and default hash generator(MurmurHash3)" parameters: - description: "an instance of class that implements PartitionKeyExtractor interface" name: "partitionKeyExtractor" type: "" - description: "the links of collections participating in partitioning" name: "collectionLinks" type: "<>" - description: "number of virtual nodes per collection" name: "numberOfVirtualNodesPerCollection" type: "" syntax: "public HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection)" desc: "HashPartitionResolver constructor taking in the PartitionKeyExtractor, collection Links, number of virtual nodes per collection and default hash generator(MurmurHash3)" - uid: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(com.microsoft.azure.documentdb.PartitionKeyExtractor,java.lang.Iterable,int,com.microsoft.azure.documentdb.HashGenerator)" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection, HashGenerator hashGenerator)" name: "HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection, HashGenerator hashGenerator)" nameWithType: "HashPartitionResolver.HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection, HashGenerator hashGenerator)" summary: "HashPartitionResolver constructor taking in the PartitionKeyExtractor, collection Links, hash generator and number of virtual nodes per collection" parameters: - description: "an instance of class that implements PartitionKeyExtractor interface" name: "partitionKeyExtractor" type: "" - description: "the links of collections participating in partitioning" name: "collectionLinks" type: "<>" - description: "number of virtual nodes per collection" name: "numberOfVirtualNodesPerCollection" type: "" - description: "hash generator used for hashing" name: "hashGenerator" type: "" syntax: "public HashPartitionResolver(PartitionKeyExtractor partitionKeyExtractor, Iterable collectionLinks, int numberOfVirtualNodesPerCollection, HashGenerator hashGenerator)" desc: "HashPartitionResolver constructor taking in the PartitionKeyExtractor, collection Links, hash generator and number of virtual nodes per collection" methods: - uid: "com.microsoft.azure.documentdb.HashPartitionResolver.resolveForCreate(java.lang.Object)" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver.resolveForCreate(Object document)" name: "resolveForCreate(Object document)" nameWithType: "HashPartitionResolver.resolveForCreate(Object document)" summary: "Resolves the collection for creating the document based on the partition key." parameters: - description: "the document to be created" name: "document" type: "" syntax: "public String resolveForCreate(Object document)" desc: "Resolves the collection for creating the document based on the partition key." returns: description: "collection Self link or Name based link which should handle the Create operation." type: "" - uid: "com.microsoft.azure.documentdb.HashPartitionResolver.resolveForRead(java.lang.Object)" fullName: "com.microsoft.azure.documentdb.HashPartitionResolver.resolveForRead(Object partitionKey)" name: "resolveForRead(Object partitionKey)" nameWithType: "HashPartitionResolver.resolveForRead(Object partitionKey)" summary: "Resolves the collection for reading/querying the documents based on the partition key." parameters: - description: "the partition key value" name: "partitionKey" type: "" syntax: "public Iterable resolveForRead(Object partitionKey)" desc: "Resolves the collection for reading/querying the documents based on the partition key." returns: description: "collection Self link(s) or Name based link(s) which should handle the Read operation" type: "<>" type: "class" desc: "HashPartitionResolver implements partitioning based on the value of a hash function, allowing you to evenly distribute requests and data across a number of partitions by implementing PartitionResolver interface in the Azure Cosmos DB database service." implements: - "" metadata: {} package: "com.microsoft.azure.documentdb" artifact: com.microsoft.azure:azure-documentdb:2.4.7