Class FixedWidthReportOptions

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

The counts that make up a FixedWidthReport.

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

Remarks

Supplied as the single constructor parameter to FixedWidthReport. Every member is optional and defaults to zero, so a caller states only the counts that are meaningful for the operation being reported — a loader, for example, leaves the extractor-only rejected and filtered counts alone rather than passing two explicit zeroes positionally.

This replaces the two positional constructors, which differed only by whether the two extractor-only counts appeared in the middle of the list. Naming each count at the call site removes the standing risk of transposing same-typed arguments.

Properties

CurrentCount

Gets the number of data records processed so far. Defaults to 0.

public int CurrentCount { get; init; }

Property Value

int

CurrentFilteredLineCount

Gets the number of physical lines read that produced no record. Extractor only — leave unset for a loader. Defaults to 0.

public int CurrentFilteredLineCount { get; init; }

Property Value

int

CurrentLineNumber

Gets the 1-based physical line number currently being processed. Defaults to 0.

public long CurrentLineNumber { get; init; }

Property Value

long

CurrentRejectedItemCount

Gets the number of parsed records rejected so far. Extractor only — leave unset for a loader. Defaults to 0.

public int CurrentRejectedItemCount { get; init; }

Property Value

int

CurrentSkippedItemCount

Gets the number of records skipped by the skip budget so far. Defaults to 0.

public int CurrentSkippedItemCount { get; init; }

Property Value

int