Class Deriv
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.TimeSeriesAggregateFunction
org.elasticsearch.xpack.esql.expression.function.aggregate.Deriv
- All Implemented Interfaces:
NamedWriteable,Writeable,PostAnalysisPlanVerificationAware,Resolvable,TimestampAware,ToAggregator
Calculates the derivative over time of a numeric field using linear regression.
-
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
FieldsFields inherited from class org.elasticsearch.xpack.esql.expression.function.aggregate.AggregateFunction
NO_WINDOW, WINDOW_INTERVALFields inherited from class org.elasticsearch.xpack.esql.core.tree.Node
TO_STRING_MAX_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionDeriv(Source source, Expression field, Expression timestamp) Deriv(Source source, Expression field, Expression filter, Expression window, Expression timestamp) -
Method Summary
Modifier and TypeMethodDescriptiondataType()protected NodeInfo<? extends Expression> info()Returns the aggregation function to be used in the first aggregation stage, which is grouped by `_tsid` (and `time_bucket`).replaceChildren(List<Expression> newChildren) supplier()withFilter(Expression filter) Attach a filter to the aggregate function.Methods inherited from class org.elasticsearch.xpack.esql.expression.function.aggregate.TimeSeriesAggregateFunction
aggregateInputReferences, requiredTimeSeriesSourceMethods inherited from class org.elasticsearch.xpack.esql.expression.function.aggregate.AggregateFunction
equals, field, filter, hasFilter, hashCode, hasWindow, parameters, postAnalysisPlanVerification, readWindow, window, 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, fold, foldable, propertiesToString, references, resolved, 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, nodeName, nodeProperties, replaceChildrenSameSize, source, sourceLocation, sourceText, transformChildren, transformDown, transformDown, transformDown, transformNodeProps, transformPropertiesDown, transformPropertiesOnly, transformPropertiesUp, transformUp, transformUp, transformUp
-
Field Details
-
ENTRY
-
-
Constructor Details
-
Deriv
-
Deriv
public Deriv(Source source, Expression field, Expression filter, Expression window, Expression timestamp)
-
-
Method Details
-
timestamp
- Specified by:
timestampin interfaceTimestampAware
-
perTimeSeriesAggregation
Description copied from class:TimeSeriesAggregateFunctionReturns the aggregation function to be used in the first aggregation stage, which is grouped by `_tsid` (and `time_bucket`).- Specified by:
perTimeSeriesAggregationin classTimeSeriesAggregateFunction- See Also:
-
withFilter
Description copied from class:AggregateFunctionAttach a filter to the aggregate function.- Specified by:
withFilterin classAggregateFunction
-
dataType
- Specified by:
dataTypein classExpression
-
resolveType
- Overrides:
resolveTypein classAggregateFunction
-
replaceChildren
- Specified by:
replaceChildrenin classNode<Expression>
-
info
- Specified by:
infoin classNode<Expression>
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
supplier
- Specified by:
supplierin interfaceToAggregator
-