Uses of Interface
net.pricefx.formulaengine.scripting.queryapi.Expression
Packages that use Expression
-
Uses of Expression in net.pricefx.formulaengine.scripting.queryapi
Subinterfaces of Expression in net.pricefx.formulaengine.scripting.queryapiModifier and TypeInterfaceDescriptioninterface
An object which represents a QueryApiExpression
and which can be part of the output or input of aPipelineStage
as it is alsoSelectable
Methods in net.pricefx.formulaengine.scripting.queryapi that return ExpressionModifier and TypeMethodDescriptionBuilds an expression computing the absolute value of the given value.Exprs.abs
(BigDecimal e) Builds an expression computing the absolute value of the given value.Exprs.abs
(Expression e) Builds an expression computing the absolute value of the given value.Exprs.and
(Expression... exprs) Builds the logical conjunction of the given expressions.Exprs.avg
(Expression e) Builds an expression computing the value of the aggregated average of a given expression.WindowFunction.avg
(Expression expression) Builds a window function computing the average of the given expression over the frame.Builds a literal boolean expression.Exprs.caseWhen
(Expression condition, Expression thenExpr, Expression elseExpr) Builds a conditional CASE WHEN expression.Expression.castAsBoolean()
Builds an expression that cast this expression to a boolean value.Expression.castAsDateOnly()
Builds an expression that cast this expression to a date only value.Expression.castAsDateTime()
Builds an expression that cast this expression to a datetime value.Expression.castAsInteger()
Builds an expression that cast this expression to an integer value.Expression.castAsReal()
Builds an expression that cast this expression to a real number value.Expression.castAsString()
Builds an expression that cast this expression to a string value.Exprs.coalesce
(Expression... exprs) Builds an expression that will return the value of the first non-null resulting given expression.Builds an expression that concatenates this expression to a given value.Expression.concat
(Expression e) Builds an expression that concatenates this expression to a given value.Exprs.count()
Deprecated.Exprs.count
(Expression e) Deprecated.Exprs.countAll()
Builds an expression computing the number of aggregated rows.WindowFunction.countAll()
Builds a window function computing the number of rows into the frame.Exprs.countDistinctNonNull
(Expression expr) Builds an expression computing the number of distinct non-null value for the given expression.Exprs.countNonNull
(Expression e) Builds an expression computing the number of rows having a non-null value for the given expression.WindowFunction.countNonNull
(Expression expression) Builds a window function computing the number of non-null expression value over the frame.WindowFunction.cumeDist()
Builds a window function computing the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows).Builds a literal date expression from aLocalDate
object.Builds a literal date expression from aDate
object ignoring all time related values.Builds a literal datetime expression from aDate
object.Exprs.dateTime
(DateTime dateTime) Builds a literal datetime expression from aDateTime
object.WindowFunction.denseRank()
Builds a window function computing the rank of the current row, without gaps; this function effectively counts peer groups.Builds an expression that computes the value of this expression divided by the given value.Expression.div
(Expression e) Builds an expression that computes the value of this expression divided by the given value.Builds an expression evaluating if this expression is equal to the given boolean.Builds an expression evaluating if this expression is equal to the given number.Builds an expression evaluating if this expression is equal to the given String.Builds an expression evaluating if this expression is equal to the given date object.Deprecated.Date
object is too ambiguous, instead useequal(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.equal
(Expression e) Builds an expression evaluating if this expression is equal to the given expression.Expression.equal
(DateTime datetime) Builds an expression evaluating if this expression is equal to the given datetime object.<T extends Enum<T>>
ExpressionExpression.equal
(T e) Builds an expression evaluating if this expression is equal to the given enum.Expression.equalNullAware
(Boolean e) Builds an expression evaluating if this expression is equal to the given boolean.Expression.equalNullAware
(Number e) Builds an expression evaluating if this expression is equal to the given number.Expression.equalNullAware
(String e) Builds an expression evaluating if this expression is equal to the given String.Expression.equalNullAware
(LocalDate dateWithoutTime) Builds an expression evaluating if this expression is equal to the given date object.Expression.equalNullAware
(Date datetime) Deprecated.Date
object is too ambiguous, instead useequalNullAware(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.equalNullAware
(Expression e) Builds an expression evaluating if this expression is equal to the given expression.Expression.equalNullAware
(DateTime datetime) Builds an expression evaluating if this expression is equal to the given datetime object.<T extends Enum<T>>
ExpressionExpression.equalNullAware
(T e) Builds an expression evaluating if this expression is equal to the given enum object.Builds an expression computing the value of the exponential function applied to the given value.Exprs.exp
(BigDecimal e) Builds an expression computing the value of the exponential function applied to the given value.Exprs.exp
(Expression e) Builds an expression computing the value of the exponential function applied to the given value.WindowFunction.firstValue
(Expression expression) Builds a window function computing the value evaluated at the row that is the first row of the window frame.Exprs.fromDataSlice
(Tables.Columns columns, DatamartContext.DataSlice dataSlice) Translates a PADatamartContext.DataSlice
into a query apiExpression
.Expression.greaterOrEqual
(Number e) Builds an expression evaluating if this expression is greater than or equal to the given number.Expression.greaterOrEqual
(LocalDate dateWithoutTime) Builds an expression evaluating if this expression is greater than or equal to the given date object.Expression.greaterOrEqual
(Date datetime) Deprecated.Date
object is too ambiguous, instead usegreaterOrEqual(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.greaterOrEqual
(Expression e) Builds an expression evaluating if this expression is greater than or equal to the given expression.Expression.greaterOrEqual
(DateTime datetime) Builds an expression evaluating if this expression is greater than or equal to the given datetime object.Expression.greaterThan
(Number e) Builds an expression evaluating if this expression is strictly greater than the given number.Expression.greaterThan
(LocalDate dateWithoutTime) Builds an expression evaluating if this expression is strictly greater than the given date object.Expression.greaterThan
(Date datetime) Deprecated.Date
object is too ambiguous, instead usegreaterThan(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.greaterThan
(Expression e) Builds an expression evaluating if this expression is strictly greater than the given expression.Expression.greaterThan
(DateTime datetime) Builds an expression evaluating if this expression is strictly greater than the given datetime object.Builds an expression evaluating if this expression is matching the standard SQLLIKE
pattern provided by the given value.Expression.ilike
(Expression e) Builds an expression evaluating if this expression is matching the standard SQLLIKE
pattern provided by the given value.Builds an expression evaluating if this expression is equal to any of the element of the given list.Builds a literal integer expression.Expression.isFalse()
Builds an expression evaluating if this expression is false.Expression.isNotNull()
Builds an expression evaluating if this expression is not null.Expression.isNull()
Builds an expression evaluating if this expression is null.Expression.isTrue()
Builds an expression evaluating if this expression is true.WindowFunction.lag
(Expression expression, Expression offset, Expression defaultValue) Builds a window function computing value evaluated at the row that is offset rows before the current row within the partition; if there is no such row, instead returns default (which must be of a type compatible with value).WindowFunction.lastValue
(Expression expression) Builds a window function computing the value evaluated at the row that is the last row of the window frame.WindowFunction.lead
(Expression expression, Expression offset, Expression defaultValue) Builds a window function computing value evaluated at the row that is offset rows after the current row within the partition; if there is no such row, instead returns default (which must be of a type compatible with value).Expression.length()
Builds an expression that computes the lenght of this expression as a String.Expression.lessOrEqual
(Number e) Builds an expression evaluating if this expression is lower than or equal to the given number.Expression.lessOrEqual
(LocalDate dateWithoutTime) Builds an expression evaluating if this expression is lower than or equal to the given date object.Expression.lessOrEqual
(Date datetime) Deprecated.Date
object is too ambiguous, instead uselessOrEqual(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.lessOrEqual
(Expression e) Builds an expression evaluating if this expression is lower than or equal to the given expression.Expression.lessOrEqual
(DateTime datetime) Builds an expression evaluating if this expression is lower than or equal to the given datetime object.Builds an expression evaluating if this expression is strictly lower than the given number.Builds an expression evaluating if this expression is strictly lower than the given date object.Deprecated.Date
object is too ambiguous, instead uselessThan(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.lessThan
(Expression e) Builds an expression evaluating if this expression is strictly lower than the given expression.Expression.lessThan
(DateTime datetime) Builds an expression evaluating if this expression is strictly lower than the given datetime object.Builds an expression evaluating if this expression is matching the standard SQLLIKE
pattern provided by the given value.Expression.like
(Expression e) Builds an expression evaluating if this expression is matching the standard SQLLIKE
pattern provided by the given value.Builds an expression that computes the first position (1-based index) of the given String in this expression.Expression.locate
(Expression needle) Builds an expression that computes the first position (1-based index) of the given String in this expression.Expression.lower()
Builds an expression that computes a lower case version of this expression.Exprs.max
(Expression e) Builds an expression computing the value of the aggregated maximum of a given expression.WindowFunction.max
(Expression expression) Builds a window function computing the maximum of the given expression over the frame.Exprs.min
(Expression e) Builds an expression computing the value of the aggregated minimum of a given expression.WindowFunction.min
(Expression expression) Builds a window function computing the minimum of the given expression over the frame.Builds an expression that computes the value of this expression minus the given value.Expression.minus
(Expression e) Builds an expression that computes the value of this expression minus the given value.Builds an expression that computes the value of the remainder of the Euclidean division of this expression by the given value.Expression.mod
(Expression e) Builds an expression that computes the value of the remainder of the Euclidean division of this expression by the given value.Builds an expression that computes the value of this expression multiplied by the given value.Expression.multiply
(Expression e) Builds an expression that computes the value of this expression multiplied by the given value.Exprs.not
(Expression e) Builds the logical negation of the given expressionBuilds an expression evaluating if this expression is not equal to the given boolean.Builds an expression evaluating if this expression is not equal to the given number.Builds an expression evaluating if this expression is not equal to the given String.Builds an expression evaluating if this expression is not equal to the given date object.Deprecated.Date
object is too ambiguous, instead usenotEqual(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.notEqual
(Expression e) Builds an expression evaluating if this expression is not equal to the given expression.Expression.notEqual
(DateTime datetime) Builds an expression evaluating if this expression is not equal to the given datetime object.<T extends Enum<T>>
ExpressionExpression.notEqual
(T e) Builds an expression evaluating if this expression is not equal to the given enum.Expression.notEqualNullAware
(Boolean e) Builds an expression evaluating if this expression is not equal to the given boolean.Expression.notEqualNullAware
(Number e) Builds an expression evaluating if this expression is not equal to the given number.Expression.notEqualNullAware
(String e) Builds an expression evaluating if this expression is not equal to the given String.Expression.notEqualNullAware
(LocalDate dateWithoutTime) Builds an expression evaluating if this expression is not equal to the given date object.Expression.notEqualNullAware
(Date datetime) Deprecated.Date
object is too ambiguous, instead usenotEqualNullAware(Expression)
withExprs.dateOnly(Date)
orExprs.dateTime(Date)
as argument.Expression.notEqualNullAware
(Expression e) Builds an expression evaluating if this expression is not equal to the given expression.Expression.notEqualNullAware
(DateTime datetime) Builds an expression evaluating if this expression is not equal to the given datetime object.<T extends Enum<T>>
ExpressionExpression.notEqualNullAware
(T e) Builds an expression evaluating if this expression is not equal to the given enum.Builds an expression evaluating if this expression is not matching the standard SQLLIKE
pattern provided by the given value.Expression.notIlike
(Expression e) Builds an expression evaluating if this expression is not matching the standard SQLLIKE
pattern provided by the given value.Builds an expression evaluating if this expression not equal to all the element of the given list.Builds an expression evaluating if this expression is not matching the standard SQLLIKE
pattern provided by the given value.Expression.notLike
(Expression e) Builds an expression evaluating if this expression is not matching the standard SQLLIKE
pattern provided by the given value.WindowFunction.nthValue
(Expression expression, Expression offset) Builds a window function computing the value evaluated at the row that is the n'th row of the window frame (counting from 1); returns NULL if there is no such row.WindowFunction.ntile
(Expression expression) Builds a window function computing an integer ranging from 1 to the argument value, dividing the partition as equally as possible.Exprs.nullIf
(Expression e1, Expression e2) Builds an expression that will return NULL if both arguments are equal, otherwise return the first one.Exprs.or
(Expression... exprs) Builds the logical disjunction of the given expressions.WindowFunction.percentRank()
Builds a window function computing the relative rank of the current row, that is (rank - 1) / (total partition rows - 1).Builds an expression that computes the value of this expression plus the given value.Expression.plus
(Expression e) Builds an expression that computes the value of this expression plus the given value.WindowFunction.rank()
Builds a window function computing the rank of the current row, with gaps; that is, the row_number of the first row in its peer group.Exprs.real
(BigDecimal value) Builds a literal real expression.WindowFunction.rowNumber()
Builds a window function computing the number of the current row within its partition, counting from 1Builds a literal string expression.Expression.substring
(int fromIndex, int length) Builds an expression that computes a substring of this expression value.Expression.substring
(Expression fromIndex, Expression length) Builds an expression that computes a substring of this expression value.Exprs.sum
(Expression e) Builds an expression computing the value of the aggregated sum of a given expression.WindowFunction.sum
(Expression expression) Builds a window function computing the sum of the given expression over the frame.Expression.trim()
Builds an expression that computes this expression without any starting or ending white space characters.Expression.upper()
Builds an expression that computes an upper case version of this expression.Methods in net.pricefx.formulaengine.scripting.queryapi with parameters of type ExpressionModifier and TypeMethodDescriptionExprs.abs
(Expression e) Builds an expression computing the absolute value of the given value.Exprs.and
(Expression... exprs) Builds the logical conjunction of the given expressions.Orders.ascNullsFirst
(Expression e) Builds an ascending order with nulls values evaluated as the lowest value.Orders.ascNullsLast
(Expression e) Builds an ascending order with nulls values evaluated as the highest value.Exprs.avg
(Expression e) Builds an expression computing the value of the aggregated average of a given expression.WindowFunction.avg
(Expression expression) Builds a window function computing the average of the given expression over the frame.Exprs.caseWhen
(Expression condition, Expression thenExpr, Expression elseExpr) Builds a conditional CASE WHEN expression.Exprs.coalesce
(Expression... exprs) Builds an expression that will return the value of the first non-null resulting given expression.Expression.concat
(Expression e) Builds an expression that concatenates this expression to a given value.Exprs.count
(Expression e) Deprecated.Exprs.countDistinctNonNull
(Expression expr) Builds an expression computing the number of distinct non-null value for the given expression.Exprs.countNonNull
(Expression e) Builds an expression computing the number of rows having a non-null value for the given expression.WindowFunction.countNonNull
(Expression expression) Builds a window function computing the number of non-null expression value over the frame.Orders.descNullsFirst
(Expression e) Builds a descending order with nulls values evaluated as the lowest value.Orders.descNullsLast
(Expression e) Builds a descending order with nulls values evaluated as the highest value.Expression.div
(Expression e) Builds an expression that computes the value of this expression divided by the given value.Expression.equal
(Expression e) Builds an expression evaluating if this expression is equal to the given expression.Expression.equalNullAware
(Expression e) Builds an expression evaluating if this expression is equal to the given expression.Exprs.exp
(Expression e) Builds an expression computing the value of the exponential function applied to the given value.WindowFunction.filter
(Expression filter) Defines a filter to be applied only on the window function.WindowFunction.firstValue
(Expression expression) Builds a window function computing the value evaluated at the row that is the first row of the window frame.Expression.greaterOrEqual
(Expression e) Builds an expression evaluating if this expression is greater than or equal to the given expression.Expression.greaterThan
(Expression e) Builds an expression evaluating if this expression is strictly greater than the given expression.Expression.ilike
(Expression e) Builds an expression evaluating if this expression is matching the standard SQLLIKE
pattern provided by the given value.WindowFunction.lag
(Expression expression, Expression offset, Expression defaultValue) Builds a window function computing value evaluated at the row that is offset rows before the current row within the partition; if there is no such row, instead returns default (which must be of a type compatible with value).WindowFunction.lastValue
(Expression expression) Builds a window function computing the value evaluated at the row that is the last row of the window frame.WindowFunction.lead
(Expression expression, Expression offset, Expression defaultValue) Builds a window function computing value evaluated at the row that is offset rows after the current row within the partition; if there is no such row, instead returns default (which must be of a type compatible with value).Expression.lessOrEqual
(Expression e) Builds an expression evaluating if this expression is lower than or equal to the given expression.Expression.lessThan
(Expression e) Builds an expression evaluating if this expression is strictly lower than the given expression.Expression.like
(Expression e) Builds an expression evaluating if this expression is matching the standard SQLLIKE
pattern provided by the given value.Expression.locate
(Expression needle) Builds an expression that computes the first position (1-based index) of the given String in this expression.Exprs.max
(Expression e) Builds an expression computing the value of the aggregated maximum of a given expression.WindowFunction.max
(Expression expression) Builds a window function computing the maximum of the given expression over the frame.Exprs.min
(Expression e) Builds an expression computing the value of the aggregated minimum of a given expression.WindowFunction.min
(Expression expression) Builds a window function computing the minimum of the given expression over the frame.Expression.minus
(Expression e) Builds an expression that computes the value of this expression minus the given value.Expression.mod
(Expression e) Builds an expression that computes the value of the remainder of the Euclidean division of this expression by the given value.Expression.multiply
(Expression e) Builds an expression that computes the value of this expression multiplied by the given value.Exprs.not
(Expression e) Builds the logical negation of the given expressionExpression.notEqual
(Expression e) Builds an expression evaluating if this expression is not equal to the given expression.Expression.notEqualNullAware
(Expression e) Builds an expression evaluating if this expression is not equal to the given expression.Expression.notIlike
(Expression e) Builds an expression evaluating if this expression is not matching the standard SQLLIKE
pattern provided by the given value.Expression.notLike
(Expression e) Builds an expression evaluating if this expression is not matching the standard SQLLIKE
pattern provided by the given value.WindowFunction.nthValue
(Expression expression, Expression offset) Builds a window function computing the value evaluated at the row that is the n'th row of the window frame (counting from 1); returns NULL if there is no such row.WindowFunction.ntile
(Expression expression) Builds a window function computing an integer ranging from 1 to the argument value, dividing the partition as equally as possible.Exprs.nullIf
(Expression e1, Expression e2) Builds an expression that will return NULL if both arguments are equal, otherwise return the first one.Exprs.or
(Expression... exprs) Builds the logical disjunction of the given expressions.Expression.plus
(Expression e) Builds an expression that computes the value of this expression plus the given value.QueryApi.source
(Tables.Table table, List<? extends Selectable> selectables, Expression filter) Main entry point to start writing a query.QueryApi.source
(Tables.Table table, Expression filter) Main entry point to start writing a query.Expression.substring
(Expression fromIndex, Expression length) Builds an expression that computes a substring of this expression value.Exprs.sum
(Expression e) Builds an expression computing the value of the aggregated sum of a given expression.WindowFunction.sum
(Expression expression) Builds a window function computing the sum of the given expression over the frame.Method parameters in net.pricefx.formulaengine.scripting.queryapi with type arguments of type ExpressionModifier and TypeMethodDescriptionPipelineStage.aggregateBy
(Function<Tables.Columns, List<? extends Expression>> by, Function<Tables.Columns, List<? extends Selectable>> selectables) Adds a stage that aggregates the outputs of this stage by a given set of expressions.PipelineStage.filter
(Function<Tables.Columns, Expression> condition) Adds a stage that only keeps this stage output rows which verify the given expression.WindowFunction.partitionBy
(List<Expression> partitions) Defines the group of rows to be processed separately.
Exprs.countAll()
instead