Class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB>
org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceAggregationBuilder<AB>
- All Implemented Interfaces:
NamedWriteable,Writeable,Rewriteable<AggregationBuilder>,BaseAggregationBuilder,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Direct Known Subclasses:
ArrayValuesSourceAggregationBuilder.LeafOnly
public abstract class ArrayValuesSourceAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
extends AbstractAggregationBuilder<AB>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
AggregationBuilder.BucketCardinality, 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
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
metadataFields 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
ConstructorsModifierConstructorDescriptionprotectedprotectedprotectedArrayValuesSourceAggregationBuilder(ArrayValuesSourceAggregationBuilder<AB> clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ArrayValuesSourceAggregatorFactorydoBuild(AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) protected final voiddoWriteTo(StreamOutput out) protected abstract org.elasticsearch.xcontent.XContentBuilderdoXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) booleanfields()Gets the field to use for this aggregation.Sets the field to use for this aggregation.format()Gets the format to use for the output of the aggregation.Sets the format to use for the output of the aggregation.inthashCode()protected abstract ArrayValuesSourceAggregatorFactoryinnerBuild(AggregationContext context, Map<String, ValuesSourceConfig> configs, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) protected abstract voidinnerWriteTo(StreamOutput out) Write subclass' state to the streamfinal org.elasticsearch.xcontent.XContentBuilderinternalXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Gets the value to use when the aggregation finds a missing value in a documentmissingMap(Map<String, Object> missingMap) Sets the value to use when the aggregation finds a missing value in a documentprotected Map<String,ValuesSourceConfig> resolveConfig(AggregationContext context) Methods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
build, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeToMethods inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
bucketCardinality, buildPipelineTree, bytesToPreallocate, doRewrite, getName, getOutputFieldNames, getPipelineAggregations, getSubAggregations, isInSortOrderExecutionRequired, rewrite, shallowCopy, toString, validateSequentiallyOrdered, validateSequentiallyOrderedWithoutGapsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.BaseAggregationBuilder
getTypeMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
MULTIVALUE_MODE_FIELD
public static final org.elasticsearch.xcontent.ParseField MULTIVALUE_MODE_FIELD
-
-
Constructor Details
-
ArrayValuesSourceAggregationBuilder
-
ArrayValuesSourceAggregationBuilder
protected ArrayValuesSourceAggregationBuilder(ArrayValuesSourceAggregationBuilder<AB> clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) -
ArrayValuesSourceAggregationBuilder
- Throws:
IOException
-
-
Method Details
-
doWriteTo
- Specified by:
doWriteToin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
IOException
-
innerWriteTo
Write subclass' state to the stream- Throws:
IOException
-
fields
Sets the field to use for this aggregation. -
fields
Gets the field to use for this aggregation. -
format
Sets the format to use for the output of the aggregation. -
format
Gets the format to use for the output of the aggregation. -
missingMap
Sets the value to use when the aggregation finds a missing value in a document -
missingMap
Gets the value to use when the aggregation finds a missing value in a document -
doBuild
protected final ArrayValuesSourceAggregatorFactory doBuild(AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws IOException - Specified by:
doBuildin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
IOException
-
resolveConfig
-
innerBuild
protected abstract ArrayValuesSourceAggregatorFactory innerBuild(AggregationContext context, Map<String, ValuesSourceConfig> configs, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws IOException- Throws:
IOException
-
internalXContent
public final org.elasticsearch.xcontent.XContentBuilder internalXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
internalXContentin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>- Throws:
IOException
-
doXContentBody
protected abstract org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
-
equals
- Overrides:
equalsin classAbstractAggregationBuilder<AB extends ArrayValuesSourceAggregationBuilder<AB>>
-