public class Query extends Object
An ElasticSearch query representation.
Generates a group of ElasticSearch queries and filters to run from a the previous pasing of a DataSetFilter.
Parameters for each query type:
Query - Boolean
Query - Match
Query - Match All
Query - Filtered
Filter - And
Filter - Or
Filter - Not
Filter - Exist
Does not contain any parameter. Only check if the value for field exists.
Filter - Term
Filter - Range
| Modifier and Type | Class and Description |
|---|---|
static class |
Query.Parameter |
static class |
Query.Type |
| Constructor and Description |
|---|
Query(Query.Type type) |
Query(String field,
Query.Type type) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
collectionToString(Collection<Query> queries,
int level) |
String |
getField() |
Object |
getParam(String key) |
Query.Type |
getType() |
protected String |
indent(int level) |
Query |
setParam(String key,
Object value) |
String |
toString() |
String |
toString(int level) |
public Query(Query.Type type)
public Query(String field, Query.Type type)
public Query.Type getType()
public String getField()
public String toString(int level)
protected String indent(int level)
protected String collectionToString(Collection<Query> queries, int level)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.