.createCollection(getDatabase().getSelfLink(), collectionDefinition, null) .getResource();
@Override public ResourceResponse<DocumentCollection> invoke() throws Exception { return client.createCollection(databaseLink, collection, options); } });
public DocumentCollection createCollection(String dbName, String collectionName, RequestOptions collectionOptions) { DocumentCollection collection = new DocumentCollection(); collection.setId(collectionName); if (LOGGER.isDebugEnabled()) { LOGGER.debug("execute createCollection in database {} collection {}", dbName, collectionName); } try { final Resource resource = documentDbFactory.getDocumentClient() .createCollection(getDatabaseLink(dbName), collection, collectionOptions) .getResource(); if (resource instanceof DocumentCollection) { collection = (DocumentCollection) resource; } return collection; } catch (DocumentClientException e) { throw new RuntimeException("createCollection exception", e); } }
.createCollection(getDatabaseLink(dbName), collection, collectionOptions) .getResource(); if (resource instanceof DocumentCollection) {
.createCollection(getDatabaseLink(dbName), collection, requestOptions) .getResource(); if (resource instanceof DocumentCollection) {