OptionalcreateCreates the default param for this operator type.
OptionallhsSelector: ISelector<Scalar, Scalar>
The condition's selector, when it has one.
Optionalcontext: DefaultConditionContext
What the condition will apply to, when known. An operator may fit its
default to it, as inSet starts from the distinct values already in the cells.
Called once per evaluation to build the operator predicate.
ctx is scoped to the condition block (same one you’ll see inside the predicate),
so you can safely use it for one-time initialization, stats, etc.null to indicate no predicate (the condition always evaluates to true).OptionaldoOptional hook that allows this operator to evaluate multiple values in a single batched operation instead of one-by-one predicate calls.
A set of batch keys previously passed to ICondition.IContext.deferBatch. The interpretation of each key is operator-specific:
The same param object originally passed to ICondition.IOperator.createPredicate.
A shared ICondition.IContext instance that can be used to:
An IRange<boolean> whose shape matches the condition range.
Typical pattern:
createPredicate constructs one or more accumulator objects (e.g., a
range updater or a per-key bucket).ctx.deferBatch(accumulatorKey),doBatch once with the set of accumulator keys. The operator then:
IRange<boolean> giving the final in/out result per cell.Rules that do not implement doBatch must not call
ICondition.IContext.deferBatch. The engine will throw in that case.
OptionalgetReturn types of scalars this operator supports.
OptionalgetReturns a human-readable description of the operator.
The name of the operator.
OptionalgetGet selector type for param (RHS).
OptionallhsSelector: ISelector<Scalar, Scalar>
The current LHS selector (for context)
The selector type for the param.
OptionalgetReturns a human-readable title of the operator.
OptionalisComposes other conditions (param is ICondition or ICondition[])
OptionaltoOptional function to convert the param to a string representation.
A string representation of the param, or undefined if not implemented.
OptionalvalidateWhether param is one this operator can be authored with under lhsSelector.
A message key naming the first problem, or null when there is none. Omitted, any
param is taken. See ICondition.validate.
Used for defining condition operators.