Table of Contents

Class IndexProjection

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

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

IReadOnlyList<string>

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

ProjectionType

Methods

Equals(IndexProjection?)

public bool Equals(IndexProjection? other)

Parameters

other IndexProjection

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(IndexProjection?, IndexProjection?)

public static bool operator ==(IndexProjection? left, IndexProjection? right)

Parameters

left IndexProjection
right IndexProjection

Returns

bool

operator !=(IndexProjection?, IndexProjection?)

public static bool operator !=(IndexProjection? left, IndexProjection? right)

Parameters

left IndexProjection
right IndexProjection

Returns

bool