DESCRIPTION

JVMCBC-273: Implement sub-document protocol in core

Motivation:
-----------
Subdocument is a feature in development that allows to read and mutate
values deep inside a JSON document, without paying the extra cost of
retrieving the whole document.

Modifications:
--------------
All subdocument operations have been implemented at the protocol level.
All subdocument status have now also a corresponding ResponseStatus.

The KeyValueHandler is able to encode and decode subdocument requests
and responses.

Messages for single operations (GET, EXIST, DICT_ADD, DICT_UPSERT,
DELETE, REPLACE, COUNTER) and array ops (PUSH_FIRST, PUSH_LAST, INSERT,
ADD_UNIQUE) have been added to the message.kv.subdoc.simple package.

Messages for multi-operations (performing several lookups or several
mutations in an atomic fashion inside a single document) have been added
to the message.kv.subdoc.multi package.

The protocol messages are tested in the SubdocumentMessageTest testcase,
which is only activate if the cluster is over or at version 4.5.

Result:
-------
The core layer of the Java SDK is ready for SubDocument feature.

Change-Id: Ib8f3a081dee85ffc9ffcacb3d973bb77789db4ea
Reviewed-on: http://review.couchbase.org/57957
Tested-by: Estrella Humphrey xxx@xxx.xxx
Reviewed-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Gerrit Code Review
date: 2016-01-04 10:27:50.762000000

Change has been successfully cherry-picked as 128d07550339126fb79539556296de5640d676b2

-------------------------------------
