Class BackupLogFrame
One WAL frame of the archive.
public sealed record BackupLogFrame : IEquatable<BackupLogFrame>
- Inheritance
-
BackupLogFrame
- Implements
- Inherited Members
Constructors
BackupLogFrame(long, long, long, BackupLogFrameKind, int, long, DateTime?, long)
One WAL frame of the archive.
public BackupLogFrame(long FirstLsn, long LastLsn, long Tsn, BackupLogFrameKind Kind, int Records, long CommitStamp, DateTime? ApproxUtc, long SegmentId)
Parameters
FirstLsnlongIts lowest LSN.
LastLsnlongIts highest LSN.
TsnlongIts transaction's TSN; 0 when none.
KindBackupLogFrameKindWhat it holds.
RecordsintIts records.
CommitStamplongIts commit stamp; 0 when none.
ApproxUtcDateTime?When it became durable, interpolated between the time samples around it; null with no sample.
SegmentIdlongThe segment holding it.
Properties
ApproxUtc
When it became durable, interpolated between the time samples around it; null with no sample.
public DateTime? ApproxUtc { get; init; }
Property Value
CommitStamp
Its commit stamp; 0 when none.
public long CommitStamp { get; init; }
Property Value
FirstLsn
Its lowest LSN.
public long FirstLsn { get; init; }
Property Value
Kind
What it holds.
public BackupLogFrameKind Kind { get; init; }
Property Value
LastLsn
Its highest LSN.
public long LastLsn { get; init; }
Property Value
Records
Its records.
public int Records { get; init; }
Property Value
SegmentId
The segment holding it.
public long SegmentId { get; init; }
Property Value
Tsn
Its transaction's TSN; 0 when none.
public long Tsn { get; init; }
Property Value
Methods
Deconstruct(out long, out long, out long, out BackupLogFrameKind, out int, out long, out DateTime?, out long)
public void Deconstruct(out long FirstLsn, out long LastLsn, out long Tsn, out BackupLogFrameKind Kind, out int Records, out long CommitStamp, out DateTime? ApproxUtc, out long SegmentId)
Parameters
FirstLsnlongLastLsnlongTsnlongKindBackupLogFrameKindRecordsintCommitStamplongApproxUtcDateTime?SegmentIdlong
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupLogFrame?)
public bool Equals(BackupLogFrame? other)
Parameters
otherBackupLogFrame
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupLogFrame?, BackupLogFrame?)
public static bool operator ==(BackupLogFrame? left, BackupLogFrame? right)
Parameters
leftBackupLogFramerightBackupLogFrame
Returns
operator !=(BackupLogFrame?, BackupLogFrame?)
public static bool operator !=(BackupLogFrame? left, BackupLogFrame? right)
Parameters
leftBackupLogFramerightBackupLogFrame