KeysAndAttributes class

Represents a set of primary keys and, for each key, the attributes to retrieve from the table.

For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key. For a composite primary key, you must provide both the partition key and the sort key.

Constructors

KeysAndAttributes({required List<Map<String, AttributeValue>> keys, List<String>? attributesToGet, bool? consistentRead, Map<String, String>? expressionAttributeNames, String? projectionExpression})
KeysAndAttributes.fromJson(Map<String, dynamic> json)
factory

Properties

attributesToGet List<String>?
This is a legacy parameter. Use ProjectionExpression instead. For more information, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.
final
consistentRead bool?
The consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
final
expressionAttributeNames Map<String, String>?
One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:
final
hashCode int
The hash code for this object.
no setterinherited
keys List<Map<String, AttributeValue>>
The primary key attribute values that define the items and the attributes associated with the items.
final
projectionExpression String?
A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by commas.
final
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