KeySchema class
The KeySchema identifies the primary key as a one attribute primary key
(hash) or a composite two attribute (hash-and-range) primary key. Single
attribute primary keys have one index value: a HashKeyElement
.
A composite hash-and-range primary key contains two attribute values: a
HashKeyElement
and a RangeKeyElement
.
Constructors
- KeySchema({required KeySchemaElement hashKeyElement, KeySchemaElement? rangeKeyElement})
-
KeySchema.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashKeyElement → KeySchemaElement
-
A hash key element is treated as the primary key, and can be a string or a
number. Single attribute primary keys have one index value. The value can be
String
,Number
,StringSet
,NumberSet
.final - rangeKeyElement → KeySchemaElement?
-
A range key element is treated as a secondary key (used in conjunction with
the primary key), and can be a string or a number, and is only used for
hash-and-range primary keys. The value can be
String
,Number
,StringSet
,NumberSet
.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