documentDB : using Java JDK and partitioning strategy


hi all,

i need develop integration documentdb using java jdk , use partition resolver.

i read javadoc cannot find information code partitioning, example use spilloverpartitionresolver, found here

https://github.com/azure/azure-documentdb-dotnet/blob/master/samples/code-samples/partitioning/partitioners/spilloverpartitionresolver.cs

does know if there existing implementation in java? or necessary develop scratch?

thanks lot

the latest version of java package has support hash , range partition resolvers, support implementing own custom resolver.

spilloverpartitionresolver custom resolver built sample demonstrate how can implement custom resolvers in .net. can same thing in java according needs.

to can implement partitionresolver interface - https://github.com/azure/azure-documentdb-java/blob/master/src/com/microsoft/azure/documentdb/partitionresolver.java in same way 2 provided implementations of hash , range do.

implementation range - https://github.com/azure/azure-documentdb-java/blob/master/src/com/microsoft/azure/documentdb/rangepartitionresolver.java

implementation hash - https://github.com/azure/azure-documentdb-java/blob/master/src/com/microsoft/azure/documentdb/hashpartitionresolver.java



Microsoft Azure  >  Azure Cosmos DB



Comments

Popular posts from this blog

SQL Server 2008 - High Memory Usage

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Problem In Configuring Biztalk 2009 In Creating A ReceivePort.When I Try To Create A Receive POrt I Got This Error