Class SpatialDocValuesFunction
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.core.expression.function.scalar.ScalarFunction
org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.SpatialDocValuesFunction
- All Implemented Interfaces:
NamedWriteable,Writeable,Resolvable,EvaluatorMapper
- Direct Known Subclasses:
SpatialGridFunction,SpatialUnaryDocValuesFunction
Spatial functions that can take doc values as an argument can inherit from this class.
Examples: StGeohash, StGeotile, StGeohex and StSimplify
-
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.xpack.esql.evaluator.mapper.EvaluatorMapper
EvaluatorMapper.ToEvaluatorNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.xpack.esql.core.expression.function.scalar.ScalarFunction
MAX_BYTES_REF_RESULT_SIZEFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpatialDocValuesFunction(Source source, List<Expression> expressions, boolean spatialDocValues) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanfoldable()Whether the expression can be evaluated statically, aka "folded", or not.inthashCode()booleanIndicates that this function prefers to have its spatial argument extracted from doc values.booleanabstract Expressionabstract SpatialDocValuesFunctionwithDocValues(boolean useDocValues) Mark the function as expecting the specified field to arrive as doc-values.Methods inherited from class org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction
foldMethods 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, propertiesToString, references, resolved, resolveType, semanticEquals, semanticHash, toString, typeResolvedMethods inherited from class org.elasticsearch.xpack.esql.core.tree.Node
anyMatch, children, collect, collect, 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.xpack.esql.evaluator.mapper.EvaluatorMapper
fold, toEvaluatorMethods inherited from interface org.elasticsearch.common.io.stream.NamedWriteable
getWriteableName
-
Field Details
-
spatialDocValues
protected final boolean spatialDocValues
-
-
Constructor Details
-
SpatialDocValuesFunction
protected SpatialDocValuesFunction(Source source, List<Expression> expressions, boolean spatialDocValues)
-
-
Method Details
-
withDocValues
Mark the function as expecting the specified field to arrive as doc-values. This only applies to geo_point and cartesian_point types. -
hashCode
public int hashCode() -
equals
-
foldable
public boolean foldable()Description copied from class:ExpressionWhether the expression can be evaluated statically, aka "folded", or not.- Overrides:
foldablein classExpression
-
spatialField
-
spatialDocValues
public boolean spatialDocValues() -
prefersDocValuesExtraction
public boolean prefersDocValuesExtraction()Indicates that this function prefers to have its spatial argument extracted from doc values. This is a hint to the planner that can be ignored if necessary. If a function does not prefer doc values extraction, it should override this method to return false. Examples of such functions are ST_X and ST_Y that should provide exact values from source. Note that if the original field is not dropped from the output, this request will be ignored.
-