public class DefaultQueryCompiler
extends java.lang.Object
implements io.georocket.query.QueryCompiler
QueryCompiler| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultQueryCompiler.Logical
Marker for the current logical operation
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<? extends io.georocket.query.QueryCompiler> |
queryCompilers
Query compilers for individual properties
|
| Constructor and Description |
|---|
DefaultQueryCompiler()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.json.JsonObject |
compileQuery(java.lang.String search) |
io.vertx.core.json.JsonObject |
compileQuery(java.lang.String search,
java.lang.String path)
Compile a search string
|
io.vertx.core.json.JsonObject |
compileQuery(java.lang.String search,
java.lang.String path,
java.lang.String keyExists)
Compile a search string
|
protected io.vertx.core.json.JsonObject |
compileQueryNoOptimize(java.lang.String search)
Create an Elasticsearch query for the given search string but does
not apply the
ElasticsearchQueryOptimizer to it. |
io.georocket.query.QueryCompiler.MatchPriority |
getQueryPriority(java.lang.String search) |
protected io.vertx.core.json.JsonObject |
makeQuery(io.georocket.query.QueryPart str)
Handle a query part.
|
void |
setQueryCompilers(java.util.Collection<? extends io.georocket.query.QueryCompiler> queryCompilers)
Constructs the compiler
|
protected java.util.Collection<? extends io.georocket.query.QueryCompiler> queryCompilers
public void setQueryCompilers(java.util.Collection<? extends io.georocket.query.QueryCompiler> queryCompilers)
queryCompilers - query compilers for individual propertiespublic io.vertx.core.json.JsonObject compileQuery(java.lang.String search,
java.lang.String path,
java.lang.String keyExists)
search - the search string to compilepath - the path where to perform the search (may be null if the
whole data store should be searched)keyExists - the name of a property which must exist in the documentpublic io.vertx.core.json.JsonObject compileQuery(java.lang.String search,
java.lang.String path)
search - the search string to compilepath - the path where to perform the search (may be null if the
whole data store should be searched)public io.vertx.core.json.JsonObject compileQuery(java.lang.String search)
compileQuery in interface io.georocket.query.QueryCompilerprotected io.vertx.core.json.JsonObject compileQueryNoOptimize(java.lang.String search)
Create an Elasticsearch query for the given search string but does
not apply the ElasticsearchQueryOptimizer to it.
search - the search stringpublic io.georocket.query.QueryCompiler.MatchPriority getQueryPriority(java.lang.String search)
getQueryPriority in interface io.georocket.query.QueryCompilerprotected io.vertx.core.json.JsonObject makeQuery(io.georocket.query.QueryPart str)
str - a string part of a query