Zum Hauptinhalt springen

ArchiveCopyPlan

Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData

What a native copy of one archive consists of: its tables with their columns and the slices in copy order (ascending in time, the generation map last). Produced by IStreamDataRepository.PlanArchiveCopyAsync(OctoObjectId, ArchiveCopyOptions, CancellationToken) for a dump, written by the bot into the manifest, and handed back to IStreamDataRepository.CopyFromStagingAsync(OctoObjectId, ArchiveCopyPlan, ArchiveCopyStagingLocation, ArchiveCopyOptions, CancellationToken) for the restore.

public record ArchiveCopyPlan : IEquatable<ArchiveCopyPlan>

Inheritance Object → ArchiveCopyPlan
Implements IEquatable<ArchiveCopyPlan>

Properties​

ArchiveRtId​

The archive the plan was made for. Its id names the folders in the staging area, so a restore into another archive id still reads the files of the source.

public OctoObjectId ArchiveRtId { get; set; }

Property Value​

OctoObjectId

Tables​

The tables with their columns as the dump found them.

public IReadOnlyList<ArchiveTableDescription> Tables { get; set; }

Property Value​

IReadOnlyList<ArchiveTableDescription>

Slices​

The slices in copy order.

public IReadOnlyList<ArchiveCopySlice> Slices { get; set; }

Property Value​

IReadOnlyList<ArchiveCopySlice>

TotalRows​

public long TotalRows { get; }

Property Value​

Int64

Constructors​

ArchiveCopyPlan(OctoObjectId, IReadOnlyList<ArchiveTableDescription>, IReadOnlyList<ArchiveCopySlice>)​

What a native copy of one archive consists of: its tables with their columns and the slices in copy order (ascending in time, the generation map last). Produced by IStreamDataRepository.PlanArchiveCopyAsync(OctoObjectId, ArchiveCopyOptions, CancellationToken) for a dump, written by the bot into the manifest, and handed back to IStreamDataRepository.CopyFromStagingAsync(OctoObjectId, ArchiveCopyPlan, ArchiveCopyStagingLocation, ArchiveCopyOptions, CancellationToken) for the restore.

public ArchiveCopyPlan(OctoObjectId ArchiveRtId, IReadOnlyList<ArchiveTableDescription> Tables, IReadOnlyList<ArchiveCopySlice> Slices)

Parameters​

ArchiveRtId OctoObjectId
The archive the plan was made for. Its id names the folders in the staging area, so a restore into another archive id still reads the files of the source.

Tables IReadOnlyList<ArchiveTableDescription>
The tables with their columns as the dump found them.

Slices IReadOnlyList<ArchiveCopySlice>
The slices in copy order.