Class FixedWidthReport

Namespace
Wolfgang.Etl.FixedWidth
Assembly
Wolfgang.Etl.FixedWidth.dll

A progress report for fixed-width extract and load operations. Extends Wolfgang.Etl.Abstractions.Report with additional diagnostic properties specific to fixed-width file processing.

public record FixedWidthReport : Report, IEquatable<Report>, IEquatable<FixedWidthReport>
Inheritance
Report
FixedWidthReport
Implements
IEquatable<Report>
Inherited Members
Report.ToString()
Report.GetHashCode()
Report.Equals(Report)
Report.<Clone>$()
Report.EqualityContract
Report.CurrentItemCount
Report.CurrentCount

Remarks

CurrentLineNumber reflects the physical line currently being processed — the same number shown in an editor such as Notepad++. It is updated before a line is parsed or written so that if an exception is thrown, the reported line number points directly to the offending line in the file.

For the extractor, CurrentLineNumber includes header lines, the separator line, and all data lines. For the loader, it includes the header line, the separator line, and all data lines written so far.

Constructors

FixedWidthReport(int, int, long)

Initializes a new instance of FixedWidthReport.

public FixedWidthReport(int currentCount, int currentSkippedItemCount, long currentLineNumber)

Parameters

currentCount int

The number of data records processed so far.

currentSkippedItemCount int

The number of records skipped so far.

currentLineNumber long

The 1-based physical line number currently being processed in the file.

Properties

CurrentLineNumber

The 1-based physical line number of the line currently being processed. Matches the line number shown in a text editor — no adjustment is needed for header or separator lines. If an exception is thrown during processing, this value points to the line that caused it.

public long CurrentLineNumber { get; }

Property Value

long

CurrentSkippedItemCount

The number of records skipped so far. For the extractor, includes records skipped by the skip budget and records silently discarded due to Skip. For the loader, includes records skipped by the skip budget.

public int CurrentSkippedItemCount { get; }

Property Value

int