Interface ElasticSearchQueryBuilder<T extends ElasticSearchQueryBuilder>
-
- All Known Implementing Classes:
ElasticSearchQueryBuilderImpl
public interface ElasticSearchQueryBuilder<T extends ElasticSearchQueryBuilder>Builds an ElasticSearch query from a collection of DataSetFilter instances and DataSetGroup selection filters.
The resulting query structure is very important for searching using best performance as possible. So this interface allows to generate another query structure than the default provided one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Querybuild()Build the resuling query and/or filters.Tfilter(List<org.dashbuilder.dataset.filter.DataSetFilter> filters)Add filters to build the query.TgroupInterval(List<org.dashbuilder.dataset.group.DataSetGroup> groups)Group operations can contain interval selections to filter that must be added into the resulting query too.Tmetadata(org.dashbuilder.dataset.DataSetMetadata metadata)Set the dataset metadata.
-
-
-
Method Detail
-
metadata
T metadata(org.dashbuilder.dataset.DataSetMetadata metadata)
Set the dataset metadata.- Parameters:
metadata- The dataset metadata.
-
groupInterval
T groupInterval(List<org.dashbuilder.dataset.group.DataSetGroup> groups)
Group operations can contain interval selections to filter that must be added into the resulting query too.- Parameters:
groups- The group operations.
-
filter
T filter(List<org.dashbuilder.dataset.filter.DataSetFilter> filters)
Add filters to build the query.- Parameters:
filters- The filter operations.
-
build
Query build()
Build the resuling query and/or filters.
-
-