【发布时间】:2015-06-08 16:53:51
【问题描述】:
我想使用 Java 获取 DocumentDB 中的集合列表。我该怎么做?
【问题讨论】:
标签: azure azure-cosmosdb nosql
我想使用 Java 获取 DocumentDB 中的集合列表。我该怎么做?
【问题讨论】:
标签: azure azure-cosmosdb nosql
DocumentClient 客户端 = new DocumentClient(HOST, MASTER_KEY, ConnectionPolicy.GetDefault(), ConsistencyLevel.Session); 列表集合 = client.readCollections(this.databaseForTest.getSelfLink(), null).getQueryIterable().toList();
【讨论】:
.databaseForTest.getSelfLink()?它可以是带有我的数据库名称的字符串吗?