Interface SeriesSpecHandler<SPEC_TYPE extends SeriesSpec,AGGREGATION_BUILDER,QUERY_RESULT,AGGREGATION_RESULT,SEARCHTYPE_HANDLER,QUERY_CONTEXT>
- Type Parameters:
SPEC_TYPE
- the type of series spec this handler deals withAGGREGATION_BUILDER
- implementation specific type for building up the aggregation when generating a backend queryQUERY_RESULT
- the backend specific type holding the overall result from the backendAGGREGATION_RESULT
- the backend specific type holding the partial result for the generated aggregationSEARCHTYPE_HANDLER
- the backend specific type of the surrounding pivot search type handlerQUERY_CONTEXT
- an opaque context object to pass around information between query generation and result handling
public interface SeriesSpecHandler<SPEC_TYPE extends SeriesSpec,AGGREGATION_BUILDER,QUERY_RESULT,AGGREGATION_RESULT,SEARCHTYPE_HANDLER,QUERY_CONTEXT>
Implementations of this class contribute handlers for series to concrete implementations of
the pivot search type
.-
Method Summary
Modifier and TypeMethodDescriptiondefault List<AGGREGATION_BUILDER>
createAggregation
(String name, Pivot pivot, SeriesSpec seriesSpec, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext) doCreateAggregation
(String name, Pivot pivot, SPEC_TYPE seriesSpec, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext) doHandleResult
(Pivot pivot, SPEC_TYPE seriesSpec, QUERY_RESULT queryResult, AGGREGATION_RESULT result, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext) default Object
handleResult
(Pivot pivot, SeriesSpec seriesSpec, Object queryResult, Object aggregationResult, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext)
-
Method Details
-
createAggregation
@Nonnull default List<AGGREGATION_BUILDER> createAggregation(String name, Pivot pivot, SeriesSpec seriesSpec, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext) -
doCreateAggregation
@Nonnull List<AGGREGATION_BUILDER> doCreateAggregation(String name, Pivot pivot, SPEC_TYPE seriesSpec, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext) -
handleResult
default Object handleResult(Pivot pivot, SeriesSpec seriesSpec, Object queryResult, Object aggregationResult, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext) -
doHandleResult
Object doHandleResult(Pivot pivot, SPEC_TYPE seriesSpec, QUERY_RESULT queryResult, AGGREGATION_RESULT result, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext)
-