首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用于android的Couchbase SubDocument API

用于android的Couchbase SubDocument API
EN

Stack Overflow用户
提问于 2018-03-26 12:46:45
回答 1查看 36关注 0票数 1

我想开发一个安卓应用程序,从教程中修改文档的内容:

代码语言:javascript
复制
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-安卓是否存在SubDocument API?

2-用于android的存在吗?

EN

回答 1

Stack Overflow用户

发布于 2018-03-27 12:01:09

正如论坛帖子中所指出的:

代码语言:javascript
复制
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.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49491830

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档