Class GeoTileGridAggregationBuilder
java.lang.Object
org.elasticsearch.search.aggregations.AggregationBuilder
org.elasticsearch.search.aggregations.AbstractAggregationBuilder<AB>
org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder<GeoGridAggregationBuilder>
org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregationBuilder
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment,Rewriteable<AggregationBuilder>,BaseAggregationBuilder
public class GeoTileGridAggregationBuilder extends GeoGridAggregationBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
GeoGridAggregationBuilder.PrecisionParserNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<AB>>Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
AggregationBuilder.BucketCardinality, AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRECISIONstatic java.lang.StringNAMEstatic org.elasticsearch.common.xcontent.ObjectParser<GeoTileGridAggregationBuilder,java.lang.String>PARSERstatic ValuesSourceRegistry.RegistryKey<GeoGridAggregatorSupplier>REGISTRY_KEYFields inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
precision, requiredSize, shardSizeFields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
configFields inherited from class org.elasticsearch.search.aggregations.AbstractAggregationBuilder
metadataFields inherited from class org.elasticsearch.search.aggregations.AggregationBuilder
factoriesBuilder, name -
Constructor Summary
Constructors Constructor Description GeoTileGridAggregationBuilder(java.lang.String name)GeoTileGridAggregationBuilder(StreamInput in) -
Method Summary
Modifier and Type Method Description protected ValuesSourceAggregatorFactorycreateFactory(java.lang.String name, ValuesSourceConfig config, int precision, int requiredSize, int shardSize, GeoBoundingBox geoBoundingBox, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)Creates a new instance of theValuesSourceAggregatorFactory-derived class specific to the geo aggregation.protected ValuesSourceRegistry.RegistryKey<?>getRegistryKey()java.lang.StringgetType()The name of the type of aggregation built by this builder.GeoGridAggregationBuilderprecision(int precision)method to validate and set the precision valuestatic voidregisterAggregators(ValuesSourceRegistry.Builder builder)protected AggregationBuildershallowCopy(AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)Create a shallow copy of this builder and replacingAggregationBuilder.factoriesBuilderandmetadata.Methods inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
bucketCardinality, createParser, defaultValueSourceType, doXContentBody, equals, geoBoundingBox, hashCode, innerBuild, innerWriteTo, precision, setGeoBoundingBox, shardSize, shardSize, size, sizeMethods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder
declareFields, declareFields, doBuild, doWriteTo, field, field, format, format, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, userValueTypeHint, userValueTypeHintMethods 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
buildPipelineTree, doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toString
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION- See Also:
- Constant Field Values
-
REGISTRY_KEY
-
PARSER
public static final org.elasticsearch.common.xcontent.ObjectParser<GeoTileGridAggregationBuilder,java.lang.String> PARSER
-
-
Constructor Details
-
GeoTileGridAggregationBuilder
public GeoTileGridAggregationBuilder(java.lang.String name) -
GeoTileGridAggregationBuilder
- Throws:
java.io.IOException
-
-
Method Details
-
registerAggregators
-
precision
Description copied from class:GeoGridAggregationBuildermethod to validate and set the precision value- Specified by:
precisionin classGeoGridAggregationBuilder- Parameters:
precision- the precision to set for the aggregation- Returns:
- the
GeoGridAggregationBuilderbuilder
-
createFactory
protected ValuesSourceAggregatorFactory createFactory(java.lang.String name, ValuesSourceConfig config, int precision, int requiredSize, int shardSize, GeoBoundingBox geoBoundingBox, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:GeoGridAggregationBuilderCreates a new instance of theValuesSourceAggregatorFactory-derived class specific to the geo aggregation.- Specified by:
createFactoryin classGeoGridAggregationBuilder- Throws:
java.io.IOException
-
shallowCopy
protected AggregationBuilder shallowCopy(AggregatorFactories.Builder factoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)Description copied from class:AggregationBuilderCreate a shallow copy of this builder and replacingAggregationBuilder.factoriesBuilderandmetadata. Used byAggregationBuilder.rewrite(QueryRewriteContext).- Specified by:
shallowCopyin classAggregationBuilder
-
getType
public java.lang.String getType()Description copied from interface:BaseAggregationBuilderThe name of the type of aggregation built by this builder. -
getRegistryKey
- Specified by:
getRegistryKeyin classValuesSourceAggregationBuilder<GeoGridAggregationBuilder>
-