我想开发一个Android应用来根据this教程所说的内容更改文档的内容:
DocumentFragment<Lookup> result = bucket
.lookupIn("subdoc")
.get("sub.value")
.exists("fruits")
.exists("sub.foo")
.execute();
String subValue = result.content("sub.value", String.class);
boolean fruitsExist = result.content("fruits", Boolean.class);
boolean fooExist = bucket.exists("sub.foo");
System.out.println(subValue + ", " +
fruitsExist + ", " +
foExist);
但是android无法识别查找符号。
1 - 为Android安装了SubDocument API吗?
2 - 是否存在适用于Android的Couchbase Server API?
答案 0 :(得分:1)
正如论坛帖子所述:
The Android API is provided by Couchbase Lite and doesn’t necessarily have the same featureset. You may want to post to the Couchbase Lite category to inquire about this. It has a bit of a different API, and I don’t think SubDocument is supported there, but there may be an alternative approach.