@@ -21,6 +21,9 @@ There are several ways to create a client connection in `cloudant-java-sdk`:
21
21
[ POJO usage in the ` cloudant-java-sdk ` library] ( #pojo-usage-in-the-new-library ) .
22
22
1 . Sending and receiving byte responses is available for operations that accept user-defined documents or return user-defined documents, document projections or map/reduce data. See [ the Raw IO section] ( https://github.com/IBM/cloudant-java-sdk#raw-io ) of ` cloudant-java-sdk ` README or the [ Bypass the document model and use the ` asStream ` methods section] ( #3-bypass-the-document-model-and-use-the-asstream-methods ) for more details.
23
23
1 . There is no built-in pagination support for views. Examples coming soon.
24
+ 1 . Replay interceptors are replaced by the [ automatic retries] ( https://github.com/IBM/ibm-cloud-sdk-common/#automatic-retries ) feature for failed requests.
25
+ 1 . Error handling is not transferable from ` java-cloudant ` to ` cloudant-java-sdk ` . For more information go to the [ Error handling section] ( https://cloud.ibm.com/apidocs/cloudant?code=java#error-handling ) in our API docs.
26
+ 1 . Custom HTTP client configurations in ` java-cloudant ` are not transferable to ` cloudant-java-sdk ` . For more information go to the [ Configuring the HTTP client section(https://githubcom/IBM/ibm-cloud-sdk-common/#configuring-the-http-client ) in the IBM Cloud SDK Common README.
24
27
25
28
### POJO usage in the new library
26
29
@@ -181,9 +184,9 @@ Here's a list of the top 5 most frequently used `java-cloudant` operations and t
181
184
182
185
| ` java-cloudant ` method | ` cloudant-java-sdk ` API method documentation link |
183
186
| -----------------------------| ---------------------------------|
184
- | ` db.find() ` | [ ` getDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdocument ) , ` getDocumentAsStream ` |
185
- | ` db.getViewRequestBuilder().newRequest().build() ` | [ ` postView ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postview ) , ` postViewAsStream ` |
186
- | ` db.query() ` | [ ` postFind ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postfind ) , ` postFindAsStream ` |
187
+ | ` db.find() ` | [ ` getDocument ` , ` getDocumentAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdocument ) |
188
+ | ` db.getViewRequestBuilder().newRequest().build() ` | [ ` postView ` , ` postViewAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postview ) |
189
+ | ` db.query() ` | [ ` postFind ` , ` postFindAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postfind ) |
187
190
| ` db.contains() ` | [ ` headDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#headdocument ) |
188
191
| ` db.update() ` | [ ` putDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdocument ) |
189
192
@@ -201,53 +204,52 @@ The table below contains a list of `java-cloudant` functions and the `cloudant-j
201
204
202
205
| java-cloudant operation | cloudant-java-sdk method reference |
203
206
| -------------------------| --------------------------------------|
204
- | ` metaInformation() ` | [ getServerInformation] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getserverinformation ) |
205
- | ` getActiveTasks() ` | [ getActiveTasks] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getactivetasks ) |
206
- | ` getAllDbs() ` | [ getAllDbs] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getalldbs ) |
207
- | ` getMembership() ` | [ getMembershipInformation] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getmembershipinformation ) |
208
- | ` replication().trigger() ` | [ postReplicate] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postreplicate ) |
209
- | ` replicator().remove() ` | [ deleteReplicationDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletereplicationdocument ) |
210
- | ` replicator().find() ` | [ getReplicationDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getreplicationdocument ) |
211
- | ` replicator().save() ` | [ putReplicationDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putreplicationdocument ) |
212
- | ` schedulerDocs() ` | [ getSchedulerDocs] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getschedulerdocs ) |
213
- | ` schedulerDoc() ` | [ getSchedulerDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getschedulerdocument ) |
214
- | ` schedulerJobs() ` | [ getSchedulerJobs] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getschedulerjobs ) |
215
- | ` uuids() ` | [ getUUids] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getuuids ) |
216
- | ` deleteDB() ` | [ deleteDatabase] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletedatabase ) |
217
- | ` db.info() ` | [ getDatabaseInformation] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdatabaseinformation ) |
218
- | ` db.save()/db.post() ` | [ postDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postdocument ) |
219
- | ` createDB()/database() with create=true/createPartitionedDb(dbName) ` | [ putDatabase] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdatabase ) |
220
- | ` db.getAllDocsRequestBuilder().build() ` | [ postAllDocs, postAllDocsAsStream] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postalldocs ) |
221
- | ` db.bulk() ` | [ postBulkDocs] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postbulkdocs ) |
222
- | ` db.changes() ` | [ postChanges, postChangesAsStream] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postchanges ) |
223
- | ` db.getDesignDocumentManager().remove() ` | [ deleteDesignDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletedesigndocument ) |
224
- | ` db.getDesignDocumentManager().get() ` | [ getDesignDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdesigndocument ) |
225
- | ` db.getDesignDocumentManager().put() ` | [ putDesignDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdesigndocument ) |
226
- | ` db.search() ` | [ postSearch] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postsearch ) , postSearchAsStream|
227
- | ` db.getViewRequestBuilder().newRequest().build() ` | [ postView] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postview ) , postViewAsStream|
228
- | ` db.getDesignDocumentManager().list() with a filter ` | [ postDesignDocs] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postdesigndocs ) |
229
- | ` db.query() ` | [ postFind] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postfind ) , postFindAsStream|
230
- | ` db.listIndexes() ` | [ getIndexesInformation] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getindexesinformation ) |
231
- | ` db.createIndex() ` | [ postIndex] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postindex ) |
232
- | ` db.deleteIndex() ` | [ deleteIndex] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deleteindex ) |
233
- | ` db.remove() with an _id with _local path ` | [ deleteLocalDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletelocaldocument ) |
234
- | ` db.find() with _local path ` | [ getLocalDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getlocaldocument ) |
235
- | ` db.save() with _local path ` | [ putLocalDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putlocaldocument ) |
236
- | ` db.partitionInfo() ` | [ getPartitionInformation] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getpartitioninformation ) |
237
- | ` db.getAllDocsRequestBuilder().partition().build() ` | [ postPartitionAllDocs] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionalldocs ) , postPartitionAllDocsAsStream|
238
- | ` db.search() ` | [ postPartitionSearch] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionsearch ) , postPartitionSearchAsStream|
239
- | ` db.getViewRequestBuilder().newRequest().partition().build() ` | [ postPartitionView] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionview ) , postPartitionViewAsStream|
240
- | ` db.query() using partitionKey method arg ` | [ postPartitionFind] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionfind ) , postPartitionFindAsStream|
241
- | ` db.getPermissions() ` | [ getSecurity] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getsecurity ) |
242
- | ` db.setPermissions(userNameorApikey, permissions) ` | [ putSecurity] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putsecurity ) |
243
- | ` db.getShards() ` | [ getShardsInformation] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getshardsinformation ) |
244
- | ` db.getShard() ` | [ getDocumentShardsInfo] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdocumentshardsinfo ) |
245
- | ` db.remove() ` | [ deleteDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletedocument ) |
246
- | ` db.find() ` | [ getDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdocument ) , getDocumentAsStream|
247
- | ` db.contains() ` | [ headDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#headdocument ) |
248
- | ` db.update() ` | [ putDocument] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdocument ) |
249
- | ` db.removeAttachment() ` | [ deleteAttachment] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deleteattachment ) |
250
- | ` db.getAttachment() ` | [ getAttachment] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getattachment ) |
251
- | ` db.saveAttachment() ` | [ putAttachment] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putattachment ) |
252
- | ` generateApiKey() ` | [ postApiKeys] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postapikeys ) |
253
- | ` db.setPermissions() ` | [ putCloudantSecurityConfiguration] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putcloudantsecurity ) |
207
+ | ` metaInformation() ` | [ ` getServerInformation ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getserverinformation ) |
208
+ | ` getActiveTasks() ` | [ ` getActiveTasks ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getactivetasks ) |
209
+ | ` getAllDbs() ` | [ ` getAllDbs ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getalldbs ) |
210
+ | ` getMembership() ` | [ ` getMembershipInformation ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getmembershipinformation ) |
211
+ | ` replicator().remove() ` | [ ` deleteReplicationDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletereplicationdocument ) |
212
+ | ` replicator().find() ` | [ ` getReplicationDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getreplicationdocument ) |
213
+ | ` replication().trigger() ` /` replicator().save() ` | [ ` putReplicationDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putreplicationdocument ) |
214
+ | ` schedulerDocs() ` | [ ` getSchedulerDocs ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getschedulerdocs ) |
215
+ | ` schedulerDoc() ` | [ ` getSchedulerDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getschedulerdocument ) |
216
+ | ` schedulerJobs() ` | [ ` getSchedulerJobs ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getschedulerjobs ) |
217
+ | ` uuids() ` | [ ` getUUids ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getuuids ) |
218
+ | ` deleteDB() ` | [ ` deleteDatabase ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletedatabase ) |
219
+ | ` db.info() ` | [ ` getDatabaseInformation ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdatabaseinformation ) |
220
+ | ` db.save()/db.post() ` | [ ` postDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postdocument ) |
221
+ | ` createDB()/database() with create=true/createPartitionedDb(dbName) ` | [ ` putDatabase ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdatabase ) |
222
+ | ` db.getAllDocsRequestBuilder().build() ` | [ ` postAllDocs ` , ` postAllDocsAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postalldocs ) |
223
+ | ` db.bulk() ` | [ ` postBulkDocs ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postbulkdocs ) |
224
+ | ` db.changes() ` | [ ` postChanges ` , ` postChangesAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postchanges-changes ) |
225
+ | ` db.getDesignDocumentManager().remove() ` | [ ` deleteDesignDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletedesigndocument ) |
226
+ | ` db.getDesignDocumentManager().get() ` | [ ` getDesignDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdesigndocument ) |
227
+ | ` db.getDesignDocumentManager().put() ` | [ ` putDesignDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdesigndocument ) |
228
+ | ` db.search() ` | [ ` postSearch ` , ` postSearchAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postsearch ) |
229
+ | ` db.getViewRequestBuilder().newRequest().build() ` | [ ` postView ` , ` postViewAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postview ) |
230
+ | ` db.getDesignDocumentManager().list() with a filter ` | [ ` postDesignDocs ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postdesigndocs ) |
231
+ | ` db.query() ` | [ ` postFind ` , ` postFindAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postfind ) |
232
+ | ` db.listIndexes() ` | [ ` getIndexesInformation ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getindexesinformation ) |
233
+ | ` db.createIndex() ` | [ ` postIndex ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postindex ) |
234
+ | ` db.deleteIndex() ` | [ ` deleteIndex ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deleteindex ) |
235
+ | ` db.remove() with an _id with _local path ` | [ ` deleteLocalDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletelocaldocument ) |
236
+ | ` db.find() with _local path ` | [ ` getLocalDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getlocaldocument ) |
237
+ | ` db.save() with _local path ` | [ ` putLocalDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putlocaldocument ) |
238
+ | ` db.partitionInfo() ` | [ ` getPartitionInformation ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getpartitioninformation ) |
239
+ | ` db.getAllDocsRequestBuilder().partition().build() ` | [ ` postPartitionAllDocs ` , ` postPartitionAllDocsAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionalldocs ) |
240
+ | ` db.search() ` | [ ` postPartitionSearch ` , ` postPartitionSearchAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionsearch ) |
241
+ | ` db.getViewRequestBuilder().newRequest().partition().build() ` | [ ` postPartitionView ` , ` postPartitionViewAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionview ) |
242
+ | ` db.query() using partitionKey method arg ` | [ ` postPartitionFind ` , ` postPartitionFindAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postpartitionfind-partitioned-databases ) |
243
+ | ` db.getPermissions() ` | [ ` getSecurity ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getsecurity ) |
244
+ | ` db.setPermissions(userNameorApikey, permissions) ` | [ ` putSecurity ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putsecurity ) |
245
+ | ` db.getShards() ` | [ ` getShardsInformation ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getshardsinformation ) |
246
+ | ` db.getShard() ` | [ ` getDocumentShardsInfo ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdocumentshardsinfo ) |
247
+ | ` db.remove() ` | [ ` deleteDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deletedocument ) |
248
+ | ` db.find() ` | [ ` getDocument ` , ` getDocumentAsStream ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getdocument ) |
249
+ | ` db.contains() ` | [ ` headDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#headdocument ) |
250
+ | ` db.update() ` | [ ` putDocument ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putdocument ) |
251
+ | ` db.removeAttachment() ` | [ ` deleteAttachment ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#deleteattachment ) |
252
+ | ` db.getAttachment() ` | [ ` getAttachment ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#getattachment ) |
253
+ | ` db.saveAttachment() ` | [ ` putAttachment ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putattachment ) |
254
+ | ` generateApiKey() ` | [ ` postApiKeys ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#postapikeys ) |
255
+ | ` db.setPermissions() ` | [ ` putCloudantSecurityConfiguration ` ] ( https://cloud.ibm.com/apidocs/cloudant?code=java#putcloudantsecurity ) |
0 commit comments