Class IndexProjection
The attributes a secondary index copies from the table.
public sealed record IndexProjection : IEquatable<IndexProjection>
- Inheritance
-
IndexProjection
- Implements
- Inherited Members
Remarks
A query on an index can only return projected attributes (and the key attributes of the table and the index); a global secondary index cannot fetch the rest from the table. Every projected attribute costs storage and write capacity.
Constructors
IndexProjection()
public IndexProjection()
Properties
NonKeyAttributes
Gets the names of the attributes to project besides the keys when ProjectionType is Include; null otherwise. All indexes of a table together can project at most 100 attributes.
public IReadOnlyList<string>? NonKeyAttributes { get; init; }
Property Value
ProjectionType
Gets which attributes are projected. A request has to set it, because Unknown cannot be sent, and that is also what a response reads as when it omits the member.
public ProjectionType ProjectionType { get; init; }
Property Value
Methods
Equals(IndexProjection?)
public bool Equals(IndexProjection? other)
Parameters
otherIndexProjection
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IndexProjection?, IndexProjection?)
public static bool operator ==(IndexProjection? left, IndexProjection? right)
Parameters
leftIndexProjectionrightIndexProjection
Returns
operator !=(IndexProjection?, IndexProjection?)
public static bool operator !=(IndexProjection? left, IndexProjection? right)
Parameters
leftIndexProjectionrightIndexProjection