Class BackupArchiveTimeline
One timeline of a store's WAL archive.
public sealed record BackupArchiveTimeline : IEquatable<BackupArchiveTimeline>
- Inheritance
-
BackupArchiveTimeline
- Implements
- Inherited Members
Constructors
BackupArchiveTimeline(Guid, Guid?, long, BackupTimelineReason, long, IReadOnlyList<BackupArchivedSegment>, IReadOnlyList<BackupArchiveGap>, IReadOnlyList<BackupTimeSample>, IReadOnlyList<KeyValuePair<string, string>>)
One timeline of a store's WAL archive.
public BackupArchiveTimeline(Guid TimelineId, Guid? ParentTimelineId, long OriginLsn, BackupTimelineReason Reason, long ArchivedThroughLsn, IReadOnlyList<BackupArchivedSegment> Segments, IReadOnlyList<BackupArchiveGap> Gaps, IReadOnlyList<BackupTimeSample> Samples, IReadOnlyList<KeyValuePair<string, string>> Unreadable)
Parameters
TimelineIdGuidIts id.
ParentTimelineIdGuid?The timeline it forked from; null for a genesis timeline or when not recorded.
OriginLsnlongThe parent's last LSN this timeline continues; 0 for a genesis timeline.
ReasonBackupTimelineReasonWhy it exists.
ArchivedThroughLsnlongThe archive's end; 0 when it holds no segment.
SegmentsIReadOnlyList<BackupArchivedSegment>Its segments, ascending LSN.
GapsIReadOnlyList<BackupArchiveGap>The ranges missing from it.
SamplesIReadOnlyList<BackupTimeSample>Time samples, at most one per segment (its last).
UnreadableIReadOnlyList<KeyValuePair<string, string>>Files of it that cannot be read, with why.
Properties
ArchivedThroughLsn
The archive's end; 0 when it holds no segment.
public long ArchivedThroughLsn { get; init; }
Property Value
Gaps
The ranges missing from it.
public IReadOnlyList<BackupArchiveGap> Gaps { get; init; }
Property Value
OriginLsn
The parent's last LSN this timeline continues; 0 for a genesis timeline.
public long OriginLsn { get; init; }
Property Value
ParentTimelineId
The timeline it forked from; null for a genesis timeline or when not recorded.
public Guid? ParentTimelineId { get; init; }
Property Value
- Guid?
Reason
Why it exists.
public BackupTimelineReason Reason { get; init; }
Property Value
Samples
Time samples, at most one per segment (its last).
public IReadOnlyList<BackupTimeSample> Samples { get; init; }
Property Value
Segments
Its segments, ascending LSN.
public IReadOnlyList<BackupArchivedSegment> Segments { get; init; }
Property Value
TimelineId
Its id.
public Guid TimelineId { get; init; }
Property Value
Unreadable
Files of it that cannot be read, with why.
public IReadOnlyList<KeyValuePair<string, string>> Unreadable { get; init; }
Property Value
Methods
Deconstruct(out Guid, out Guid?, out long, out BackupTimelineReason, out long, out IReadOnlyList<BackupArchivedSegment>, out IReadOnlyList<BackupArchiveGap>, out IReadOnlyList<BackupTimeSample>, out IReadOnlyList<KeyValuePair<string, string>>)
public void Deconstruct(out Guid TimelineId, out Guid? ParentTimelineId, out long OriginLsn, out BackupTimelineReason Reason, out long ArchivedThroughLsn, out IReadOnlyList<BackupArchivedSegment> Segments, out IReadOnlyList<BackupArchiveGap> Gaps, out IReadOnlyList<BackupTimeSample> Samples, out IReadOnlyList<KeyValuePair<string, string>> Unreadable)
Parameters
TimelineIdGuidParentTimelineIdGuid?OriginLsnlongReasonBackupTimelineReasonArchivedThroughLsnlongSegmentsIReadOnlyList<BackupArchivedSegment>GapsIReadOnlyList<BackupArchiveGap>SamplesIReadOnlyList<BackupTimeSample>UnreadableIReadOnlyList<KeyValuePair<string, string>>
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupArchiveTimeline?)
public bool Equals(BackupArchiveTimeline? other)
Parameters
otherBackupArchiveTimeline
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupArchiveTimeline?, BackupArchiveTimeline?)
public static bool operator ==(BackupArchiveTimeline? left, BackupArchiveTimeline? right)
Parameters
leftBackupArchiveTimelinerightBackupArchiveTimeline
Returns
operator !=(BackupArchiveTimeline?, BackupArchiveTimeline?)
public static bool operator !=(BackupArchiveTimeline? left, BackupArchiveTimeline? right)
Parameters
leftBackupArchiveTimelinerightBackupArchiveTimeline