Class GeoHashGridAggregationBuilder
java.lang.Object
org.opensearch.search.aggregations.AggregationBuilder
org.opensearch.search.aggregations.AbstractAggregationBuilder<GeoGridAggregationBuilder>
org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder<GeoGridAggregationBuilder>
org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
org.opensearch.geo.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable,org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentFragment,Rewriteable<AggregationBuilder>,BaseAggregationBuilder
Aggregation Builder for geohash_grid
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
GeoGridAggregationBuilder.PrecisionParserNested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<AB>> Nested classes/interfaces inherited from class org.opensearch.search.aggregations.AggregationBuilder
AggregationBuilder.BucketCardinality, AggregationBuilder.CommonFieldsNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final org.opensearch.core.xcontent.ObjectParser<GeoHashGridAggregationBuilder, String> static final ValuesSourceRegistry.RegistryKey<GeoGridAggregatorSupplier> Fields inherited from class org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
precision, requiredSize, shardSizeFields inherited from class org.opensearch.search.aggregations.support.ValuesSourceAggregationBuilder
configFields inherited from class org.opensearch.search.aggregations.AbstractAggregationBuilder
metadataFields inherited from class org.opensearch.search.aggregations.AggregationBuilder
factoriesBuilder, nameFields inherited from interface org.opensearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionGeoHashGridAggregationBuilder(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected ValuesSourceAggregatorFactorycreateFactory(String name, ValuesSourceConfig config, int precision, int requiredSize, int shardSize, GeoBoundingBox geoBoundingBox, QueryShardContext queryShardContext, 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()precision(int precision) method to validate and set the precision valuestatic voidprotected AggregationBuildershallowCopy(AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) Methods inherited from class org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder
bucketCardinality, createParser, defaultValueSourceType, doXContentBody, equals, geoBoundingBox, hashCode, innerBuild, innerWriteTo, precision, setGeoBoundingBox, shardSize, shardSize, size, sizeMethods inherited from class org.opensearch.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.opensearch.search.aggregations.AbstractAggregationBuilder
build, getMetadata, getWriteableName, setMetadata, subAggregation, subAggregation, subAggregations, toXContent, writeToMethods inherited from class org.opensearch.search.aggregations.AggregationBuilder
buildPipelineTree, doRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION- See Also:
-
DEFAULT_MAX_NUM_CELLS
public static final int DEFAULT_MAX_NUM_CELLS- See Also:
-
REGISTRY_KEY
-
PARSER
public static final org.opensearch.core.xcontent.ObjectParser<GeoHashGridAggregationBuilder,String> PARSER
-
-
Constructor Details
-
GeoHashGridAggregationBuilder
-
GeoHashGridAggregationBuilder
public GeoHashGridAggregationBuilder(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
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(String name, ValuesSourceConfig config, int precision, int requiredSize, int shardSize, GeoBoundingBox geoBoundingBox, QueryShardContext queryShardContext, 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 classGeoGridAggregationBuilder- Throws:
IOException
-
shallowCopy
protected AggregationBuilder shallowCopy(AggregatorFactories.Builder factoriesBuilder, Map<String, Object> metadata) - Specified by:
shallowCopyin classAggregationBuilder
-
getType
-
getRegistryKey
- Specified by:
getRegistryKeyin classValuesSourceAggregationBuilder<GeoGridAggregationBuilder>
-