Class BackupArchivedSegment
One archived WAL segment.
public sealed record BackupArchivedSegment : IEquatable<BackupArchivedSegment>
- Inheritance
-
BackupArchivedSegment
- Implements
- Inherited Members
Constructors
BackupArchivedSegment(long, long, long, DateTime?, DateTime, long, long, BackupArchivedSegmentFlags, bool)
One archived WAL segment.
public BackupArchivedSegment(long SegmentId, long FirstLsn, long LastLsn, DateTime? SealedUtc, DateTime ArchivedUtc, long Bytes, long RawBytes, BackupArchivedSegmentFlags Flags, bool SessionStart)
Parameters
SegmentIdlongIts id.
FirstLsnlongIts first LSN.
LastLsnlongThe archive's end once it is in: its last LSN, or its last record's when that lies further.
SealedUtcDateTime?When the engine sealed it; null when not recorded (a segment adopted at an open).
ArchivedUtcDateTimeWhen it was archived.
ByteslongIts file's bytes.
RawByteslongThe WAL bytes it holds.
FlagsBackupArchivedSegmentFlagsWhat else is known of it.
SessionStartboolThe first segment of an engine session.
Properties
ArchivedUtc
When it was archived.
public DateTime ArchivedUtc { get; init; }
Property Value
Bytes
Its file's bytes.
public long Bytes { get; init; }
Property Value
FirstLsn
Its first LSN.
public long FirstLsn { get; init; }
Property Value
Flags
What else is known of it.
public BackupArchivedSegmentFlags Flags { get; init; }
Property Value
LastLsn
The archive's end once it is in: its last LSN, or its last record's when that lies further.
public long LastLsn { get; init; }
Property Value
RawBytes
The WAL bytes it holds.
public long RawBytes { get; init; }
Property Value
SealedUtc
When the engine sealed it; null when not recorded (a segment adopted at an open).
public DateTime? SealedUtc { get; init; }
Property Value
SegmentId
Its id.
public long SegmentId { get; init; }
Property Value
SessionStart
The first segment of an engine session.
public bool SessionStart { get; init; }
Property Value
Methods
Deconstruct(out long, out long, out long, out DateTime?, out DateTime, out long, out long, out BackupArchivedSegmentFlags, out bool)
public void Deconstruct(out long SegmentId, out long FirstLsn, out long LastLsn, out DateTime? SealedUtc, out DateTime ArchivedUtc, out long Bytes, out long RawBytes, out BackupArchivedSegmentFlags Flags, out bool SessionStart)
Parameters
SegmentIdlongFirstLsnlongLastLsnlongSealedUtcDateTime?ArchivedUtcDateTimeByteslongRawByteslongFlagsBackupArchivedSegmentFlagsSessionStartbool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupArchivedSegment?)
public bool Equals(BackupArchivedSegment? other)
Parameters
otherBackupArchivedSegment
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupArchivedSegment?, BackupArchivedSegment?)
public static bool operator ==(BackupArchivedSegment? left, BackupArchivedSegment? right)
Parameters
leftBackupArchivedSegmentrightBackupArchivedSegment
Returns
operator !=(BackupArchivedSegment?, BackupArchivedSegment?)
public static bool operator !=(BackupArchivedSegment? left, BackupArchivedSegment? right)
Parameters
leftBackupArchivedSegmentrightBackupArchivedSegment