Table of Contents

Class BackupLogFrame

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

FirstLsn long

Its lowest LSN.

LastLsn long

Its highest LSN.

Tsn long

Its transaction's TSN; 0 when none.

Kind BackupLogFrameKind

What it holds.

Records int

Its records.

CommitStamp long

Its commit stamp; 0 when none.

ApproxUtc DateTime?

When it became durable, interpolated between the time samples around it; null with no sample.

SegmentId long

The 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

DateTime?

CommitStamp

Its commit stamp; 0 when none.

public long CommitStamp { get; init; }

Property Value

long

FirstLsn

Its lowest LSN.

public long FirstLsn { get; init; }

Property Value

long

Kind

What it holds.

public BackupLogFrameKind Kind { get; init; }

Property Value

BackupLogFrameKind

LastLsn

Its highest LSN.

public long LastLsn { get; init; }

Property Value

long

Records

Its records.

public int Records { get; init; }

Property Value

int

SegmentId

The segment holding it.

public long SegmentId { get; init; }

Property Value

long

Tsn

Its transaction's TSN; 0 when none.

public long Tsn { get; init; }

Property Value

long

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

FirstLsn long
LastLsn long
Tsn long
Kind BackupLogFrameKind
Records int
CommitStamp long
ApproxUtc DateTime?
SegmentId long

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BackupLogFrame?)

public bool Equals(BackupLogFrame? other)

Parameters

other BackupLogFrame

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BackupLogFrame?, BackupLogFrame?)

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

Parameters

left BackupLogFrame
right BackupLogFrame

Returns

bool

operator !=(BackupLogFrame?, BackupLogFrame?)

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

Parameters

left BackupLogFrame
right BackupLogFrame

Returns

bool