Interface PivotSpecHandler<SPEC_TYPE extends PivotSpec,AGGREGATION_BUILDER,QUERY_RESULT,AGGREGATION_RESULT,SEARCHTYPE_HANDLER,QUERY_CONTEXT>
- Type Parameters:
SPEC_TYPE
- the type of bucket or 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 PivotSpecHandler<SPEC_TYPE extends PivotSpec,AGGREGATION_BUILDER,QUERY_RESULT,AGGREGATION_RESULT,SEARCHTYPE_HANDLER,QUERY_CONTEXT>
Implementations of this class contribute handlers for buckets and series to concrete implementations of
the pivot search type
.-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<AGGREGATION_BUILDER>
createAggregation
(String name, PivotSpec pivotSpec, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext) doCreateAggregation
(String name, SPEC_TYPE pivotSpec, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext) doHandleResult
(SPEC_TYPE pivotSpec, QUERY_RESULT queryResult, AGGREGATION_RESULT result, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext) default Object
handleResult
(PivotSpec pivotSpec, Object queryResult, Object aggregationResult, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext)
-
Method Details
-
createAggregation
@Nonnull default Optional<AGGREGATION_BUILDER> createAggregation(String name, PivotSpec pivotSpec, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext) -
doCreateAggregation
@Nonnull Optional<AGGREGATION_BUILDER> doCreateAggregation(String name, SPEC_TYPE pivotSpec, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext) -
handleResult
default Object handleResult(PivotSpec pivotSpec, Object queryResult, Object aggregationResult, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext) -
doHandleResult
Object doHandleResult(SPEC_TYPE pivotSpec, QUERY_RESULT queryResult, AGGREGATION_RESULT result, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext)
-