Interface BucketSpecHandler<SPEC_TYPE extends BucketSpec,AGGREGATION_BUILDER,QUERY_CONTEXT>
- Type Parameters:
SPEC_TYPE
- the type of bucket spec this handler deals withAGGREGATION_BUILDER
- implementation specific type for building up the aggregation when generating a backend queryQUERY_CONTEXT
- an opaque context object to pass around information between query generation and result handling
public interface BucketSpecHandler<SPEC_TYPE extends BucketSpec,AGGREGATION_BUILDER,QUERY_CONTEXT>
Implementations of this class contribute handlers for buckets concrete implementations of
the pivot search type
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static enum
-
Method Summary
Modifier and TypeMethodDescriptioncreateAggregation
(BucketSpecHandler.Direction direction, String name, Pivot pivot, BucketSpec pivotSpec, GeneratedQueryContext queryContext, Query query) doCreateAggregation
(BucketSpecHandler.Direction direction, String name, Pivot pivot, SPEC_TYPE bucketSpec, QUERY_CONTEXT queryContext, Query query)
-
Method Details
-
createAggregation
@Nonnull default BucketSpecHandler.CreatedAggregations<AGGREGATION_BUILDER> createAggregation(BucketSpecHandler.Direction direction, String name, Pivot pivot, BucketSpec pivotSpec, GeneratedQueryContext queryContext, Query query) -
doCreateAggregation
@Nonnull BucketSpecHandler.CreatedAggregations<AGGREGATION_BUILDER> doCreateAggregation(BucketSpecHandler.Direction direction, String name, Pivot pivot, SPEC_TYPE bucketSpec, QUERY_CONTEXT queryContext, Query query)
-