Class SpatialAggregateFunction
java.lang.Object
org.elasticsearch.xpack.esql.core.tree.Node<Expression>
org.elasticsearch.xpack.esql.core.expression.Expression
org.elasticsearch.xpack.esql.core.expression.function.Function
org.elasticsearch.xpack.esql.expression.function.aggregate.AggregateFunction
org.elasticsearch.xpack.esql.expression.function.aggregate.SpatialAggregateFunction
- All Implemented Interfaces:
NamedWriteable,Writeable,PostAnalysisPlanVerificationAware,Resolvable,LicenseAware
- Direct Known Subclasses:
SpatialCentroid,SpatialExtent
All spatial aggregate functions extend this class to enable the planning of reading from doc values for higher performance.
The AggregateMapper class will generate multiple aggregation functions for each combination, allowing the planner to
select the best one.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
Expression.TypeResolutionNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpatialAggregateFunction(StreamInput in, MappedFieldType.FieldExtractPreference fieldExtractPreference) protectedSpatialAggregateFunction(Source source, Expression field, Expression filter, MappedFieldType.FieldExtractPreference fieldExtractPreference) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanlicenseCheck(XPackLicenseState state) Return true if the implementer can be executed under the providedXPackLicenseState, otherwise false.abstract SpatialAggregateFunctionMethods inherited from class org.elasticsearch.xpack.esql.expression.function.aggregate.AggregateFunction
deprecatedWriteParams, field, filter, hasFilter, parameters, postAnalysisPlanVerification, readGenericAggregateFunction, resolveType, withFilter, withParameters, writeToMethods inherited from class org.elasticsearch.xpack.esql.core.expression.function.Function
arguments, functionName, nodeString, nullableMethods inherited from class org.elasticsearch.xpack.esql.core.expression.Expression
canonical, canonicalize, childrenResolved, dataType, fold, foldable, propertiesToString, references, resolved, semanticEquals, semanticHash, toString, typeResolvedMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
anyMatch, children, collect, collectFirstChildren, collectLeaves, doCollectFirst, forEachDown, forEachDown, forEachDownMayReturnEarly, forEachProperty, forEachPropertyDown, forEachPropertyOnly, forEachPropertyUp, forEachUp, forEachUp, info, nodeName, nodeProperties, replaceChildren, replaceChildrenSameSize, source, sourceLocation, sourceText, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUpMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Field Details
-
fieldExtractPreference
-
-
Constructor Details
-
SpatialAggregateFunction
protected SpatialAggregateFunction(Source source, Expression field, Expression filter, MappedFieldType.FieldExtractPreference fieldExtractPreference) -
SpatialAggregateFunction
protected SpatialAggregateFunction(StreamInput in, MappedFieldType.FieldExtractPreference fieldExtractPreference) throws IOException - Throws:
IOException
-
-
Method Details
-
withFieldExtractPreference
public abstract SpatialAggregateFunction withFieldExtractPreference(MappedFieldType.FieldExtractPreference preference) -
licenseCheck
Description copied from interface:LicenseAwareReturn true if the implementer can be executed under the providedXPackLicenseState, otherwise false.- Specified by:
licenseCheckin interfaceLicenseAware
-
hashCode
public int hashCode()- Overrides:
hashCodein classAggregateFunction
-
equals
- Overrides:
equalsin classAggregateFunction
-
fieldExtractPreference
-