Class CustomAggregationBuilder
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
io.vertigo.datafactory.plugins.search.elasticsearch_7_17.CustomAggregationBuilder
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.NamedWriteable,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.index.query.Rewriteable<org.elasticsearch.search.aggregations.AggregationBuilder>,org.elasticsearch.search.aggregations.BaseAggregationBuilder,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public final class CustomAggregationBuilder
extends org.elasticsearch.search.aggregations.AggregationBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AggregationBuilder.BucketCardinality, org.elasticsearch.search.aggregations.AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
org.elasticsearch.common.io.stream.Writeable.Reader<V>, org.elasticsearch.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
DEFAULT_PREALLOCATION, factoriesBuilder, nameFields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.search.aggregations.AggregationBuilder.BucketCardinalityprotected org.elasticsearch.search.aggregations.AggregatorFactorybuild(org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent) booleangetType()inthashCode()setMetadata(Map<String, Object> metaData) protected org.elasticsearch.search.aggregations.AggregationBuildershallowCopy(org.elasticsearch.search.aggregations.AggregatorFactories.Builder originalFactoriesBuilder, Map<String, Object> originalMetaData) subAggregation(org.elasticsearch.search.aggregations.AggregationBuilder aggregation) subAggregation(org.elasticsearch.search.aggregations.PipelineAggregationBuilder aggregation) Add a sub aggregation to this aggregation.subAggregations(org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactories) Registers sub-factories with this factory.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out) Methods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
buildPipelineTree, bytesToPreallocate, doRewrite, getName, getOutputFieldNames, getPipelineAggregations, getSubAggregations, isInSortOrderExecutionRequired, rewrite, toString, validateSequentiallyOrdered, validateSequentiallyOrderedWithoutGapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
DECIMAL_PRECISION_TO_PARAM
-
-
Constructor Details
-
CustomAggregationBuilder
Constructs a new aggregation builder.- Parameters:
name- The aggregation name
-
-
Method Details
-
getType
-
writeTo
- Throws:
IOException
-
subAggregation
public CustomAggregationBuilder subAggregation(org.elasticsearch.search.aggregations.AggregationBuilder aggregation) - Specified by:
subAggregationin classorg.elasticsearch.search.aggregations.AggregationBuilder
-
subAggregation
public CustomAggregationBuilder subAggregation(org.elasticsearch.search.aggregations.PipelineAggregationBuilder aggregation) Add a sub aggregation to this aggregation.- Specified by:
subAggregationin classorg.elasticsearch.search.aggregations.AggregationBuilder
-
subAggregations
public CustomAggregationBuilder subAggregations(org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactories) Registers sub-factories with this factory. The sub-factory will be responsible for the creation of sub-aggregators under the aggregator created by this factory.- Specified by:
subAggregationsin interfaceorg.elasticsearch.search.aggregations.BaseAggregationBuilder- Specified by:
subAggregationsin classorg.elasticsearch.search.aggregations.AggregationBuilder- Parameters:
subFactories- The sub-factories- Returns:
- this factory (fluent interface)
-
setMetadata
- Specified by:
setMetadatain interfaceorg.elasticsearch.search.aggregations.BaseAggregationBuilder- Specified by:
setMetadatain classorg.elasticsearch.search.aggregations.AggregationBuilder
-
getMetadata
- Specified by:
getMetadatain classorg.elasticsearch.search.aggregations.AggregationBuilder
-
getWriteableName
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
shallowCopy
protected org.elasticsearch.search.aggregations.AggregationBuilder shallowCopy(org.elasticsearch.search.aggregations.AggregatorFactories.Builder originalFactoriesBuilder, Map<String, Object> originalMetaData) - Specified by:
shallowCopyin classorg.elasticsearch.search.aggregations.AggregationBuilder
-
build
protected org.elasticsearch.search.aggregations.AggregatorFactory build(org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent) - Specified by:
buildin classorg.elasticsearch.search.aggregations.AggregationBuilder
-
hashCode
public int hashCode() -
equals
-
bucketCardinality
public org.elasticsearch.search.aggregations.AggregationBuilder.BucketCardinality bucketCardinality()- Specified by:
bucketCardinalityin classorg.elasticsearch.search.aggregations.AggregationBuilder
-