Table of Contents

Class GetRecordsResponse

Namespace
DynaSharp.Streams
Assembly
DynaSharp.dll

The result of GetRecordsRequest.

public sealed record GetRecordsResponse : IEquatable<GetRecordsResponse>
Inheritance
GetRecordsResponse
Implements
Inherited Members

Remarks

An empty Records list with a NextShardIterator is normal: the shard has no new records yet, or DynamoDB read a part of the shard without finding any. Keep reading with the new iterator, and wait a moment between empty responses. Only a null NextShardIterator ends a shard.

Constructors

GetRecordsResponse()

public GetRecordsResponse()

Properties

NextShardIterator

Gets the iterator to read the next records with. null when the shard is closed and all its records have been returned: the reader is done with this shard and continues with its child shards (see DescribeStream with a ShardFilter). While the shard is open it is never null, even when Records is empty. Valid for 15 minutes; treat it like a credential.

public string? NextShardIterator { get; init; }

Property Value

string

Records

Gets the records in the order DynamoDB wrote them. Empty when there are none yet: that is not an error and not the end of the shard.

public IReadOnlyList<ChangeRecord> Records { get; init; }

Property Value

IReadOnlyList<ChangeRecord>

Methods

Equals(GetRecordsResponse?)

public bool Equals(GetRecordsResponse? other)

Parameters

other GetRecordsResponse

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 ==(GetRecordsResponse?, GetRecordsResponse?)

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

Parameters

left GetRecordsResponse
right GetRecordsResponse

Returns

bool

operator !=(GetRecordsResponse?, GetRecordsResponse?)

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

Parameters

left GetRecordsResponse
right GetRecordsResponse

Returns

bool