Skip to content

SourceAdapterBase

Mendz edited this page Oct 27, 2017 · 2 revisions

SourceAdapterBase

The base source adapter.

Constructors

None.

Properties

None.

Inherited Properties

Name Description
DocumentSpecification SourceSpecification Get or sets the source document specification.
IValidator SourceValidator Gets or sets the source validator.

Methods

None.

Abstract Methods

Name Description
IEnumerable<string> ExtractInput() Extracts the input from the source.

Inherited Methods

Name Description
IEnumerable<string> Extract() Raises source adapter events, validates the source and calls ExtractInput().

Inherited Events

Name Description
ETLSourceAdapterEventHandler OnSourceAdapterStart Raised when the source adapter starts.
ETLSourceAdapterEventHandler OnExtracting Raised before the source is extracted.
ETLSourceAdapterEventHandler OnExtracted Raised when an input is extracted from the source.
ETLSourceAdapterEventHandler OnSourceAdapterEnd Raised when the source adapter ends.

Remarks

The Extract() implementation performs the following:

  1. If set, raises OnSourceAdapterStart.
  2. If set, calls SourceValidator.Validate(SourceSpecification). Otherwise, the source is assumed valid.
  3. If the source is valid:
    a. If set, raises OnExtracting.
    b. Loops through ExtractInput().
        i. If set, raises OnExtracted.
        ii. Yields the extracted input.
  4. If set, raises OnSourceAdapterEnd.