Couchbase Java SDK 2.0.0 Beta 2 发布,代号为 Armstrong。此版本是 GA 版本之前的最后一个 beta 版本,包括了两个重要的新插件,bug 修复和功能增强。此版本包括 1.0.0-beta2 和 Java SDK 2.0.0-beta2 的核心包 "core-io" 。
获取 Couchbase Java SDK 2.0.0 Beta2:
<dependencies>
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>java-client</artifactId>
<version>2.0.0-beta2</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>couchbase</id>
<name>couchbase repo</name>
<url>http://files.couchbase.com/maven2</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
主要改进内容如下:
修改了 Artifact 名字
Blocking APIs
更多文档和代码转换器类型:
-
JsonArrayDocument -> to store Json Arrays as the toplevel value
-
JsonBooleanDocument -> to store Json Boolean as the value
-
JsonDoubleDocument -> to store Json Number (double/float) as the value
-
JsonLongDocument -> to store Json Number (long/int) as the value
-
JsonStringDocument -> to store Json String (quoted) as the value
-
StringDocument -> to store a raw (non JSON) string unquoted
-
SerializableDocument -> to store a POJO which implements Serializable
-
BinaryDocument -> to storw raw bytes which are not transcoded in any form.
不久之后将会发布 GA 版本,GA 版本发布一周后会发布 2.0.1 bug 修复版本。更多内容请看发行说明。
Hadoop和Couchbase结合使用的技巧 http://www.linuxidc.com/Linux/2013-05/85006.htm
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-09/107110.htm
