DESCRIPTION

JVMCBC-334: N1QL parsing of SELECT RAW

Motivation:
-----------
In some corner cases, where maximum throughput must be achieved with
N1QL, using a `SELECT RAW somefield` statement can give a boost. But
the current streaming parser relies on detecting JSON Objects in the
results.

Modifications:
--------------
The QueryHandler has been modified to detect if results is an array
made of JSON Objects or just scalar values. In the later case, this is
a SELECT RAW and new parsing logic is applied.

The case where results is empty is also covered (considered a classic
object case).

Added tests for a complex 8 results response and 1 result response.

Results:
--------
SELECT RAW is now supported by the QueryHandler.

Change-Id: I4eb170b7b405abff309a10857f3919b821bea840


COMMENTS

author: Estrella Humphrey
date: 2016-05-12 10:30:44.620000000

Uploaded patch set 5.

-------------------------------------
author: Estrella Humphrey
date: 2016-05-12 10:31:24.459000000

Patch Set 5: Verified+1

-------------------------------------
author: Natasha Sullivan
date: 2016-05-12 15:07:59.919000000

Patch Set 5: Code-Review+2

-------------------------------------
author: Gerrit Code Review
date: 2016-05-12 15:30:28.368000000

Change has been successfully cherry-picked as cd7b4272bb2228c3e2589fd9072877548970b4f4 by Estrella Humphrey

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