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

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'