progress

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package progress counts what the tests assert on in the progress files of a data export and a data import, read the way the exporter and the importer read them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlanPath

func PlanPath(path string) string

PlanPath is the side file next to the progress file at path that holds the plan.

func ReadExport

func ReadExport(path string) (*exporter.ProgressView, error)

ReadExport reads the export progress file at path with exporter.ReadProgress; a missing one is (nil, nil).

func ReadManifest

func ReadManifest(dir string) (*manifest.Manifest, error)

ReadManifest reads the manifest of the artifact directory dir.

Types

type Import

type Import struct {
	importer.ProgressView
}

Import is an import progress file as importer.ReadProgress reads it.

func ReadImport

func ReadImport(path string) (*Import, error)

ReadImport reads the import progress file at path with importer.ReadProgress; a missing one is (nil, nil).

func (*Import) Complete

func (p *Import) Complete() int

Complete counts the complete work items.

func (*Import) InflightStreamParts

func (p *Import) InflightStreamParts() int

InflightStreamParts counts the stream and trace parts in flight.

func (*Import) PushedRows

func (p *Import) PushedRows() uint64

PushedRows sums the rows every run pushed.

func (*Import) SentWindow

func (p *Import) SentWindow() uint64

SentWindow sums the rows of the started CSV items sent after their cursors and not acknowledged: the rows a resume lists as ambiguous.

func (*Import) Started

func (p *Import) Started() int

Started counts the CSV items started and not complete.

func (*Import) StreamTraceBoundViolations

func (p *Import) StreamTraceBoundViolations(m *manifest.Manifest) []string

StreamTraceBoundViolations checks the stream and trace rows every run pushed per (catalog, group) against one uninterrupted import of the plan from the artifact m: every row was pushed, and no more rows above them than recorded as possible duplicates of that group. A CSV artifact pushes every row it acknowledged once, so its counts must be equal. It lists every group that breaks the bound, none when all hold. The stage is left out: the plan keys carry the source stage and the pushed counts the target stage, which differ when the target maps the stage.

func (*Import) StreamTraceDuplicates

func (p *Import) StreamTraceDuplicates() uint64

StreamTraceDuplicates sums the stream and trace rows recorded as pushed again, which may be stored twice.

func (*Import) StreamTracePushed

func (p *Import) StreamTracePushed() uint64

StreamTracePushed sums the stream and trace rows every run pushed.

func (*Import) StreamTraceRowsOnce

func (p *Import) StreamTraceRowsOnce(m *manifest.Manifest) uint64

StreamTraceRowsOnce is how many stream and trace rows one uninterrupted import of the plan pushes from the artifact m: per planned work item, the rows of its chosen sources (of a native shard, its parts' rows; of a CSV shard, the rows of its files; of a segment item, the source's).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL