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 handlingpublic interface PivotSpecHandler<SPEC_TYPE extends PivotSpec,AGGREGATION_BUILDER,QUERY_RESULT,AGGREGATION_RESULT,SEARCHTYPE_HANDLER,QUERY_CONTEXT>
the pivot search type.| Modifier and Type | Method and Description |
|---|---|
default Optional<AGGREGATION_BUILDER> |
createAggregation(String name,
PivotSpec pivotSpec,
SearchTypeHandler searchTypeHandler,
GeneratedQueryContext queryContext) |
Optional<AGGREGATION_BUILDER> |
doCreateAggregation(String name,
SPEC_TYPE pivotSpec,
SEARCHTYPE_HANDLER searchTypeHandler,
QUERY_CONTEXT queryContext) |
Object |
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) |
@Nonnull default Optional<AGGREGATION_BUILDER> createAggregation(String name, PivotSpec pivotSpec, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext)
@Nonnull Optional<AGGREGATION_BUILDER> doCreateAggregation(String name, SPEC_TYPE pivotSpec, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext)
default Object handleResult(PivotSpec pivotSpec, Object queryResult, Object aggregationResult, SearchTypeHandler searchTypeHandler, GeneratedQueryContext queryContext)
Object doHandleResult(SPEC_TYPE pivotSpec, QUERY_RESULT queryResult, AGGREGATION_RESULT result, SEARCHTYPE_HANDLER searchTypeHandler, QUERY_CONTEXT queryContext)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.