Class GeoHashGridAggregationBuilder
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.GeoHashGridAggregationBuilder
- All Implemented Interfaces:
- NamedWriteable,- Writeable,- org.elasticsearch.common.xcontent.ToXContent,- org.elasticsearch.common.xcontent.ToXContentFragment,- Rewriteable<AggregationBuilder>,- BaseAggregationBuilder
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilderGeoGridAggregationBuilder.PrecisionParserNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilderValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<AB>>Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregationBuilderAggregationBuilder.BucketCardinality, AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.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.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic intstatic intstatic Stringstatic org.elasticsearch.common.xcontent.ObjectParser<GeoHashGridAggregationBuilder,String>Fields inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilderprecision, requiredSize, shardSizeFields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilderconfigFields 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.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier and TypeMethodDescriptionprotected ValuesSourceAggregatorFactorycreateFactory(String name, ValuesSourceConfig config, int precision, int requiredSize, int shardSize, GeoBoundingBox geoBoundingBox, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metadata)Creates a new instance of theValuesSourceAggregatorFactory-derived class specific to the geo aggregation.protected ValuesSourceRegistry.RegistryKey<?>getType()The name of the type of aggregation built by this builder.precision(int precision)method to validate and set the precision valuestatic voidprotected 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.bucket.geogrid.GeoGridAggregationBuilderbucketCardinality, createParser, defaultValueSourceType, doXContentBody, equals, geoBoundingBox, hashCode, innerBuild, innerWriteTo, precision, setGeoBoundingBox, shardSize, shardSize, size, sizeMethods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilderdeclareFields, 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.AbstractAggregationBuilderbuild, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeToMethods inherited from class org.elasticsearch.search.aggregations.AggregationBuilderbuildPipelineTree, bytesToPreallocate, doRewrite, getName, getOutputFieldNames, getPipelineAggregations, getSubAggregations, rewrite, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
NAME- See Also:
- Constant Field Values
 
- 
DEFAULT_PRECISIONpublic static final int DEFAULT_PRECISION- See Also:
- Constant Field Values
 
- 
DEFAULT_MAX_NUM_CELLSpublic static final int DEFAULT_MAX_NUM_CELLS- See Also:
- Constant Field Values
 
- 
REGISTRY_KEY
- 
PARSERpublic static final org.elasticsearch.common.xcontent.ObjectParser<GeoHashGridAggregationBuilder,String> PARSER
 
- 
- 
Constructor Details- 
GeoHashGridAggregationBuilder
- 
GeoHashGridAggregationBuilder- Throws:
- IOException
 
 
- 
- 
Method Details- 
registerAggregators
- 
precisionDescription copied from class:GeoGridAggregationBuildermethod to validate and set the precision value- Specified by:
- precisionin class- GeoGridAggregationBuilder
- Parameters:
- precision- the precision to set for the aggregation
- Returns:
- the GeoGridAggregationBuilderbuilder
 
- 
createFactoryprotected ValuesSourceAggregatorFactory createFactory(String name, ValuesSourceConfig config, int precision, int requiredSize, int shardSize, GeoBoundingBox geoBoundingBox, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metadata) throws IOExceptionDescription copied from class:GeoGridAggregationBuilderCreates a new instance of theValuesSourceAggregatorFactory-derived class specific to the geo aggregation.- Specified by:
- createFactoryin class- GeoGridAggregationBuilder
- 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
 
- 
getTypeDescription copied from interface:BaseAggregationBuilderThe name of the type of aggregation built by this builder.
- 
getRegistryKey- Specified by:
- getRegistryKeyin class- ValuesSourceAggregationBuilder<GeoGridAggregationBuilder>
 
 
-