#304 - ElasticSearch integration part 1 / doc store integration

This commit is contained in:
Robin Bygrave
2016-03-01 15:36:44 +13:00
parent cb1fe297d6
commit 8d3b4a0407
209 changed files with 6736 additions and 573 deletions
@@ -8,54 +8,56 @@ public enum Op {
/**
* Exists (JSON).
*/
EXISTS(" is not null "),
EXISTS(" is not null ", ""),
/**
* Not Exists (JSON).
*/
NOT_EXISTS(" is null "),
NOT_EXISTS(" is null ", ""),
/**
* Between (JSON).
*/
BETWEEN(" between ? and ? "),
BETWEEN(" between ? and ? ", ""),
/**
* Equal to
*/
EQ(" = ? "),
EQ(" = ? ", ""),
/**
* Not equal to.
*/
NOT_EQ(" <> ? "),
NOT_EQ(" <> ? ", ""),
/**
*
* Less than.
*/
LT(" < ? "),
LT(" < ? ", "lt"),
/**
* Less than or equal to.
*/
LT_EQ(" <= ? "),
LT_EQ(" <= ? ", "lte"),
/**
* Greater than.
*/
GT(" > ? "),
GT(" > ? ", "gt"),
/**
* Greater than or equal to.
*/
GT_EQ(" >= ? ");
GT_EQ(" >= ? ", "gte");
final String exp;
Op(String exp) {
final String docExp;
Op(String exp, String docExp) {
this.exp = exp;
this.docExp = docExp;
}
/**
@@ -64,4 +66,11 @@ public enum Op {
public String bind() {
return exp;
}
/**
* Return the doc store expression.
*/
public String docExp() {
return docExp;
}
}