cloudant / java-cloudant

A Java client for Cloudant
Apache License 2.0
79 stars 68 forks source link

Add replication selector support. #479

Closed smithsz closed 5 years ago

smithsz commented 5 years ago

Checklist

Description

Add replication selector support.

client.replicator()
                     .replicatorDocId(replicatorDocId)
                     .source(sourceDbUrl)
                     .target(targetDbUrl)
                     .selector(eq("_id", "Schwarzenegger"))
                     .save();

Fixes #477.

Approach

Added selector option to Replicator builder.

Schema & API Changes

Additional getters/setters.

Security and Privacy

No change.

Testing

Additional mock test.

Monitoring and Logging