我想使用Java获取DocumentDB中的集合列表。我该怎么做?
答案 0 :(得分:1)
DocumentClient client = new DocumentClient(HOST,MASTER_KEY,ConnectionPolicy.GetDefault(),ConsistencyLevel.Session); List collections = client.readCollections(this.databaseForTest.getSelfLink(),null).getQueryIterable()。toList();