Closed smithsz closed 5 years ago
CHANGES.md
CHANGELOG.md
Adds partitioned database support.
Inject _partition/<partitionKey> into the request URI when a partition key is specified for the following operations:
_partition/<partitionKey>
Also, adds an additional method on the database class to fetch database partition metadata.
No breaking API changes.
New API:
CloudantClient.createPartitionedDB(String dbName)
Database.query(String partitionKey, String query, final Class<T> classOfT)
Database.search(String partitionKey, String searchIndexId)
Database.partitionInfo(String partitionKey)
No change.
Added additional tests:
PartitionedDatabaseTest.java
PartitionInfoMockTests.java
Checklist
CHANGES.md
|CHANGELOG.md
) or test/build only changesDescription
Adds partitioned database support.
Approach
Inject
_partition/<partitionKey>
into the request URI when a partition key is specified for the following operations:Also, adds an additional method on the database class to fetch database partition metadata.
Schema & API Changes
No breaking API changes.
New API:
CloudantClient.createPartitionedDB(String dbName)
Database.query(String partitionKey, String query, final Class<T> classOfT)
Database.search(String partitionKey, String searchIndexId)
Database.partitionInfo(String partitionKey)
Security and Privacy
No change.
Testing
Added additional tests:
PartitionedDatabaseTest.java
: Exercises the new partition querying features against a real Cloudant instance.PartitionInfoMockTests.java
: Verifies mock partition metadata can be correctly deserialised.Monitoring and Logging
No change.