Module org.elasticsearch.server
Class TimeSeriesAggregationBuilder
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
org.elasticsearch.search.aggregations.timeseries.TimeSeriesAggregationBuilder
- All Implemented Interfaces:
- NamedWriteable,- VersionedNamedWriteable,- Writeable,- Rewriteable<AggregationBuilder>,- BaseAggregationBuilder,- ToXContent,- ToXContentFragment
public class TimeSeriesAggregationBuilder
extends AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
- 
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final Stringstatic final InstantiatingObjectParser<TimeSeriesAggregationBuilder,String> Fields 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 SummaryConstructorsModifierConstructorDescriptionTimeSeriesAggregationBuilder(String name, Boolean keyed) protectedTimeSeriesAggregationBuilder(TimeSeriesAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) 
- 
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) booleanReturn true if any of the child aggregations is a time-series aggregation that requires an in-order executionbooleanisKeyed()voidsetKeyed(boolean keyed) 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, 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:
 
- 
KEYED_FIELD
- 
PARSER
 
- 
- 
Constructor Details- 
TimeSeriesAggregationBuilder
- 
TimeSeriesAggregationBuilder
- 
TimeSeriesAggregationBuilderprotected TimeSeriesAggregationBuilder(TimeSeriesAggregationBuilder clone, AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) 
- 
TimeSeriesAggregationBuilder- Throws:
- IOException
 
 
- 
- 
Method Details- 
doWriteTo- Specified by:
- doWriteToin class- AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
- Throws:
- IOException
 
- 
doBuildprotected AggregatorFactory doBuild(AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder) throws IOException - Specified by:
- doBuildin class- AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
- Throws:
- IOException
 
- 
internalXContentprotected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- internalXContentin class- AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
- Throws:
- IOException
 
- 
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
 
- 
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
 
- 
getTypeDescription copied from interface:BaseAggregationBuilderThe name of the type of aggregation built by this builder.
- 
isInSortOrderExecutionRequiredpublic boolean isInSortOrderExecutionRequired()Description copied from class:AggregationBuilderReturn true if any of the child aggregations is a time-series aggregation that requires an in-order execution- Overrides:
- isInSortOrderExecutionRequiredin class- AggregationBuilder
 
- 
isKeyedpublic boolean isKeyed()
- 
setKeyedpublic void setKeyed(boolean keyed) 
- 
equals- Overrides:
- equalsin class- AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractAggregationBuilder<TimeSeriesAggregationBuilder>
 
- 
getMinimalSupportedVersionDescription copied from interface:VersionedNamedWriteableThe minimal version of the recipient this object can be sent to
 
-