DESCRIPTION

JCBC-814: Refactoring query-related code out of AsyncBucket

Motivation:
-----------
In CouchbaseAsyncBucket, the code relative to executing N1QL queries is
starting to take too much space, becoming more difficult to maintain.
Externalize all the actual implementation into a separate class.

Modifications:
--------------
Refactored private methods queryRaw and queryPrepared as well as actual
implementation for prepare into a separate class QueryExecutor.

Fixed unit tests where a PREPARE is asserted.

Results
-------
Code for query execution is isolated and will be easier to find and to
maintain. Unit tests and query integration tests pass.

Change-Id: I597e796769fd7ea4fb3d0052d55ad9ba2d7cbd2e


COMMENTS

author: Estrella Humphrey
date: 2015-07-22 16:34:46.327000000

Uploaded patch set 2.

-------------------------------------
author: Estrella Humphrey
date: 2015-07-22 16:35:03.020000000

Patch Set 2: Verified+1

-------------------------------------
author: Natasha Sullivan
date: 2015-07-22 17:00:58.809000000

Patch Set 2:

(1 comment)

Line:93, src/main/java/com/couchbase/client/java/AsyncBucket.java -> can you enable it on the Bucket as well for consistency reasons?

-------------------------------------
author: Tate Garrett
date: 2015-07-23 07:30:44.917000000

Change has been successfully cherry-picked as 10cdefebba1432a46662e6107903585570c7d7a8

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