Condition

class Condition

Represents the selection criteria for a Query or Scan operation:

  • For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions, only the following comparison operators are supported:EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN``Condition is also used in a QueryFilter, which evaluates the query results and returns only the desired values.

  • For a Scan operation, Condition is used in a ScanFilter, which evaluates the scan results and returns only the desired values.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator being used.

Link copied to clipboard

A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

Functions

Link copied to clipboard
inline fun copy(block: Condition.Builder.() -> Unit = {}): Condition
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