-
Notifications
You must be signed in to change notification settings - Fork 3
SourceAdapterBase
Mendz edited this page Oct 27, 2017
·
2 revisions
The base source adapter.
None.
None.
Name | Description |
---|---|
DocumentSpecification SourceSpecification | Get or sets the source document specification. |
IValidator SourceValidator | Gets or sets the source validator. |
None.
Name | Description |
---|---|
IEnumerable<string> ExtractInput() | Extracts the input from the source. |
Name | Description |
---|---|
IEnumerable<string> Extract() | Raises source adapter events, validates the source and calls ExtractInput(). |
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. |
The Extract() implementation performs the following:
- If set, raises OnSourceAdapterStart.
- If set, calls SourceValidator.Validate(SourceSpecification). Otherwise, the source is assumed valid.
- If the source is valid:
a. If set, raises OnExtracting.
b. Loops through ExtractInput().
i. If set, raises OnExtracted.
ii. Yields the extracted input. - If set, raises OnSourceAdapterEnd.