我想使用Java获取DocumentDB中的集合列表 . 我该怎么办?
检查https://github.com/shipunyc/azure-documentdb-java/blob/master/src/com/microsoft/azure/documentdb/test/GatewayTests.java#L356
DocumentClient client = new DocumentClient(HOST,MASTER_KEY,ConnectionPolicy.GetDefault(),ConsistencyLevel.Session); List collections = client.readCollections(this.databaseForTest.getSelfLink(),null).getQueryIterable() . toList();
1 回答
检查https://github.com/shipunyc/azure-documentdb-java/blob/master/src/com/microsoft/azure/documentdb/test/GatewayTests.java#L356