History log of /Couchbase_Java_Client_v2.5/.gitreview (Results 1 - 1 of 1)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 2.7.12, 2.7.11, 2.7.10, 2.7.9, 2.7.8, 2.7.7, 2.7.6, 2.7.5, 2.7.4, 2.7.3, 2.7.2, 2.7.1, 2.7.0, 2.6.2, 2.6.1, 2.6.0, 2.5.9, 2.5.8, 2.6.0-beta, 2.5.7, 2.5.6, 2.6.0-dp1, 2.5.5, 2.5.4, 2.5.3, 2.5.2, 2.4.8, 2.5.1, 2.5.0, 2.4.7, 2.4.6, 2.4.5, 1.4.13
# a6e0761c 10-Apr-2017 Alper Kanat <me@alperkan.at>

JCBC-1069: Added union, intersect & except to DSL

Motivation
----------
DSL has union & unionAll methods in SelectResultPath interface. Even if they existed,
it's not possible to

JCBC-1069: Added union, intersect & except to DSL

Motivation
----------
DSL has union & unionAll methods in SelectResultPath interface. Even if they existed,
it's not possible to join multiple queries by using existing method signatures. In my
case, I'm joining dynamically generated queries assigned to variables. I think it's
best to allow DSL to chain queries like below:

result = query1.intersect(query2).except(query3)

Modifications
-------------
Added 2 new elements: ExceptElement & IntersectElement.
Changed UnionElement to allow a query to be added.
Added new methods to SelectResultPath for missing intersect & except methods which uses
the old method signature same as union & unionAll. Also added new chainable methods
which takes & returns SelectResultPath objects. Added tests.

Also added .gitreview file.

Change-Id: I118a337da2a3d53edb5b1e908035c227eedca804
Reviewed-on: http://review.couchbase.org/76561
Reviewed-by: Alper Kanat <me@alperkan.at>
Reviewed-by: Michael Nitschinger <michael@nitschinger.at>
Tested-by: Michael Nitschinger <michael@nitschinger.at>

show more ...