ExpressionFilter

class ExpressionFilter @InternalWowApi constructor(val expression: AggregationExpression, val comparison: ComparisonOperator, val value: Double) : FilterExpression

Compares a computed expression, for example the hours from paidAt to shippedAt, with value. A record whose expression has no value (an operand is absent, or a division by zero) does not match, whatever the comparison. The expression is evaluated per record and cannot use an index, so the operator is expensive.

Experimental with the aggregation expressions it computes: the operator may change shape before it is stable.

Constructors

Link copied to clipboard
constructor(expression: AggregationExpression, comparison: ComparisonOperator, value: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val operator: FilterOperator
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(expression: AggregationExpression = this.expression, comparison: ComparisonOperator = this.comparison, value: Double = this.value): ExpressionFilter

This ExpressionFilter with the given values replaced; for Wow's own query rewriting.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String