Table of Contents

Class BackupCompactionResult

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

What a compaction did.

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

Constructors

BackupCompactionResult(BackupPointSummary, bool, int, int, int, long, long, TimeSpan)

What a compaction did.

public BackupCompactionResult(BackupPointSummary Point, bool AlreadyBase, int ChainDepth, int Pages, int HolePages, long BytesRead, long BytesWritten, TimeSpan Duration)

Parameters

Point BackupPointSummary

The point, as its compacted pack now describes it (or its existing base when it already was one).

AlreadyBase bool

The point was already a base (a full point, or compacted before): nothing was written.

ChainDepth int

The packs its chain read.

Pages int

The image's pages, every one held by the compacted pack.

HolePages int

Pages no pack of the chain held, written as zero entries.

BytesRead long

Bytes read from the chain's packs (the pre-publish verify excluded).

BytesWritten long

The compacted pack's size.

Duration TimeSpan

Wall time, the pre-publish verify included.

Properties

AlreadyBase

The point was already a base (a full point, or compacted before): nothing was written.

public bool AlreadyBase { get; init; }

Property Value

bool

BytesRead

Bytes read from the chain's packs (the pre-publish verify excluded).

public long BytesRead { get; init; }

Property Value

long

BytesWritten

The compacted pack's size.

public long BytesWritten { get; init; }

Property Value

long

ChainDepth

The packs its chain read.

public int ChainDepth { get; init; }

Property Value

int

Duration

Wall time, the pre-publish verify included.

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

HolePages

Pages no pack of the chain held, written as zero entries.

public int HolePages { get; init; }

Property Value

int

Pages

The image's pages, every one held by the compacted pack.

public int Pages { get; init; }

Property Value

int

Point

The point, as its compacted pack now describes it (or its existing base when it already was one).

public BackupPointSummary Point { get; init; }

Property Value

BackupPointSummary

Methods

Deconstruct(out BackupPointSummary, out bool, out int, out int, out int, out long, out long, out TimeSpan)

public void Deconstruct(out BackupPointSummary Point, out bool AlreadyBase, out int ChainDepth, out int Pages, out int HolePages, out long BytesRead, out long BytesWritten, out TimeSpan Duration)

Parameters

Point BackupPointSummary
AlreadyBase bool
ChainDepth int
Pages int
HolePages int
BytesRead long
BytesWritten long
Duration TimeSpan

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BackupCompactionResult?)

public bool Equals(BackupCompactionResult? other)

Parameters

other BackupCompactionResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BackupCompactionResult?, BackupCompactionResult?)

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

Parameters

left BackupCompactionResult
right BackupCompactionResult

Returns

bool

operator !=(BackupCompactionResult?, BackupCompactionResult?)

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

Parameters

left BackupCompactionResult
right BackupCompactionResult

Returns

bool