Condition class
Represents the selection criteria for a Query
or
Scan
operation:
-
For a
Query
operation,Condition
is used for specifying theKeyConditions
to use when querying a table or an index. ForKeyConditions
, only the following comparison operators are supported:EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN
Condition
is also used in aQueryFilter
, which evaluates the query results and returns only the desired values. -
For a
Scan
operation,Condition
is used in aScanFilter
, which evaluates the scan results and returns only the desired values.
Constructors
-
Condition({required ComparisonOperator comparisonOperator, List<
AttributeValue> ? attributeValueList})
Properties
-
attributeValueList
→ List<
AttributeValue> ? -
One or more values to evaluate against the supplied attribute. The number of
values in the list depends on the
ComparisonOperator
being used.final - comparisonOperator → ComparisonOperator
-
A comparator for evaluating attributes. For example, equals, greater than,
less than, etc.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited