Package de.elo.ix.client.esearch.query
Class AggregationQuery
java.lang.Object
de.elo.ix.client.esearch.query.AggregationQuery
- All Implemented Interfaces:
Serializable
- Since:
- 21.03.000.001
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggregationQueryParams
Contains type specific parameters (e.g.protected FieldTypeE
Defines the concrete ES field together with searchField.
Options are tokenized, not tokenized, numeric, date.protected String
If searchfield equals to SearchFieldE.INDEXFIELD, provide the name of the index field here.
If searchField != SearchFieldE.INDEXFIELD, this value is ignored.protected String
protected SearchFieldE
Provides the constant of the field to be aggregated.
To aggregate an index field, set this to SearchFieldE.INDEXFIELD and provide its name in indexFieldKey.protected AggregationTypeE
-
Constructor Summary
ConstructorsConstructorDescriptionAggregationQuery
(String name) Constructor with only the name.AggregationQuery
(String name, AggregationTypeE type) Constructor with name and type.AggregationQuery
(String name, AggregationTypeE type, SearchFieldE searchField, FieldTypeE fieldType) Constructor with name, type and frequently used parameters searchField and fieldType. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getType()
void
setAggregationQueryParams
(AggregationQueryParams aggregationQueryParams) void
setFieldType
(FieldTypeE fieldType) void
setIndexFieldKey
(String indexFieldKey) void
void
setSearchField
(SearchFieldE searchField) void
setType
(AggregationTypeE type) Returns a shorter toString value.
The aggregationQueryParams are type specific.toString()
toString
(int depth) Produces a toString-Result with base parameters and type specific parameters.
The type specific parameters are contained in aggregationQueryParams (type-specific) and can contain AggregationQueries for sub-aggregations of one level deeper.
-
Field Details
-
name
-
type
-
searchField
Provides the constant of the field to be aggregated.
To aggregate an index field, set this to SearchFieldE.INDEXFIELD and provide its name in indexFieldKey.- See Also:
-
fieldType
Defines the concrete ES field together with searchField.
Options are tokenized, not tokenized, numeric, date.- See Also:
-
indexFieldKey
If searchfield equals to SearchFieldE.INDEXFIELD, provide the name of the index field here.
If searchField != SearchFieldE.INDEXFIELD, this value is ignored. If the associated docmask is of type DocMaskC.DATA_ORGANISATION_OBJKEYS or DATA_ORGANISATION_TABLE the value of this field should be the line key of the docMaskLine. If the associated docMask is of type DocMaskC.DATA_ORGANISATION_ASPECT the value of this field should be the name of the aspectAssoc followed by "¶" followed by the line key of the aspectLine, e.g. CUSTOMERADDRESS¶STREET. -
aggregationQueryParams
Contains type specific parameters (e.g. for type=TERMS parameters size, sub-aggregations, ...)
-
-
Constructor Details
-
AggregationQuery
public AggregationQuery() -
AggregationQuery
Constructor with only the name. -
AggregationQuery
Constructor with name and type. -
AggregationQuery
public AggregationQuery(String name, AggregationTypeE type, SearchFieldE searchField, FieldTypeE fieldType) Constructor with name, type and frequently used parameters searchField and fieldType.
-
-
Method Details
-
getName
-
setName
-
getType
-
setType
-
getSearchField
-
setSearchField
-
getFieldType
-
setFieldType
-
getIndexFieldKey
-
setIndexFieldKey
-
getAggregationQueryParams
-
setAggregationQueryParams
-
toString
-
toString
Produces a toString-Result with base parameters and type specific parameters.
The type specific parameters are contained in aggregationQueryParams (type-specific) and can contain AggregationQueries for sub-aggregations of one level deeper.- Parameters:
depth
- recursion depth of sub-aggregations- Returns:
-
toShortString
Returns a shorter toString value.
The aggregationQueryParams are type specific.
-