Module org.elasticsearch.server
Class ReverseNestedAggregationBuilder
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
org.elasticsearch.search.aggregations.bucket.nested.ReverseNestedAggregationBuilder
- All Implemented Interfaces:
- NamedWriteable,- VersionedNamedWriteable,- Writeable,- Rewriteable<AggregationBuilder>,- BaseAggregationBuilder,- ToXContent,- ToXContentFragment
public class ReverseNestedAggregationBuilder
extends AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilderAggregationBuilder.BucketCardinality, AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsFields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuildermetadataFields inherited from class org.elasticsearch.search.aggregations.AggregationBuilderDEFAULT_PREALLOCATION, factoriesBuilder, nameFields inherited from interface org.elasticsearch.index.query.RewriteableMAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionRead from a stream.ReverseNestedAggregationBuilder(ReverseNestedAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> map) 
- 
Method SummaryModifier and TypeMethodDescriptionA rough count of the number of buckets thatAggregators built by this builder will contain per owning parent bucket.protected AggregatorFactorydoBuild(AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) protected voiddoWriteTo(StreamOutput out) booleanThe minimal version of the recipient this object can be sent togetType()The name of the type of aggregation built by this builder.inthashCode()protected XContentBuilderinternalXContent(XContentBuilder builder, ToXContent.Params params) parse(String aggregationName, XContentParser parser) path()Get the path to use for this nested aggregation.Set the path to use for this nested aggregation.protected AggregationBuildershallowCopy(AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) Create a shallow copy of this builder and replacingAggregationBuilder.factoriesBuilderandmetadata.Methods inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilderbuild, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeToMethods inherited from class org.elasticsearch.search.aggregations.AggregationBuilderbuildPipelineTree, bytesToPreallocate, doRewrite, getName, getOutputFieldNames, getPipelineAggregations, getSubAggregations, isInSortOrderExecutionRequired, rewrite, supportsSampling, toString, validateSequentiallyOrdered, validateSequentiallyOrderedWithoutGapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
ReverseNestedAggregationBuilder
- 
ReverseNestedAggregationBuilderpublic ReverseNestedAggregationBuilder(ReverseNestedAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> map) 
- 
ReverseNestedAggregationBuilderRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
shallowCopyprotected AggregationBuilder shallowCopy(AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) Description copied from class:AggregationBuilderCreate a shallow copy of this builder and replacingAggregationBuilder.factoriesBuilderandmetadata. Used byAggregationBuilder.rewrite(QueryRewriteContext).- Specified by:
- shallowCopyin class- AggregationBuilder
 
- 
doWriteTo- Specified by:
- doWriteToin class- AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
- Throws:
- IOException
 
- 
pathSet the path to use for this nested aggregation. The path must match the path to a nested object in the mappings. If it is not specified then this aggregation will go back to the root document.
- 
pathGet the path to use for this nested aggregation.
- 
bucketCardinalityDescription copied from class:AggregationBuilderA rough count of the number of buckets thatAggregators built by this builder will contain per owning parent bucket.- Specified by:
- bucketCardinalityin class- AggregationBuilder
 
- 
doBuildprotected AggregatorFactory doBuild(AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws IOException - Specified by:
- doBuildin class- AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
- Throws:
- IOException
 
- 
internalXContentprotected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- internalXContentin class- AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
- Throws:
- IOException
 
- 
parsepublic static ReverseNestedAggregationBuilder parse(String aggregationName, XContentParser parser) throws IOException - Throws:
- IOException
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
 
- 
equals- Overrides:
- equalsin class- AbstractAggregationBuilder<ReverseNestedAggregationBuilder>
 
- 
getTypeDescription copied from interface:BaseAggregationBuilderThe name of the type of aggregation built by this builder.
- 
getMinimalSupportedVersionDescription copied from interface:VersionedNamedWriteableThe minimal version of the recipient this object can be sent to
 
-