PredicateOp enum
Comparison operator carried by a CmpPredicate. Stored as a value
(rather than encoded in the subclass) so switch over op stays
exhaustive at evaluation time and indexed-executor pushdown can
pattern-match on it.
The set is not truly closed: members like, inSet, between,
contains, and startsWith are pre-allocated names for operators
that aren't yet implemented in CmpPredicate.evaluate. Calling
evaluate with one throws UnimplementedError. They're declared
now so adding their implementations later doesn't expand the enum
shape (which would force user switch statements to refactor).
Apps that pattern-match on PredicateOp should always include a
default: branch.
Values
- eq → const PredicateOp
- neq → const PredicateOp
- lt → const PredicateOp
- lte → const PredicateOp
- gt → const PredicateOp
- gte → const PredicateOp
- isNull → const PredicateOp
- isNotNull → const PredicateOp
- like → const PredicateOp
- inSet → const PredicateOp
- between → const PredicateOp
- contains → const PredicateOp
- startsWith → const PredicateOp
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PredicateOp> - A constant List of the values in this enum, in order of their declaration.