메소드 | 설명 | |
---|---|---|
AddToBadRowsDataTable ( |
Rows are processed in batches, and good and bad rows collected. This function add a single bad row to a datatable which is comprised of all the bad rows for a single batch.
|
|
InvokePostRowProcessor ( int loadNumber, IList |
This function is called for PostRowProcessor methods specified in the FeedFileMap.
|
|
PostProcess ( int loadNum, IReadyToUseSubPlan readyToUseSubPlan ) : void |
PostProcess is the final stage of processing, where business rules are applied against the data placed in staging by the Process() endpoint, and resultant rows inserted, modified, and/or deleted at the final location. The load number to perform post processing on. A ReadyToUseSubPlan (can be null) that may have additional PostProcessors to be run first.
|
|
Process ( ) : int |
This entry point implements the first stage of processing for a datasource. The feed files have already been put in place (as a precondition), and this method will then parse the feed files, transform them as described by their respective transformMaps, and call the DataStager for this FeedProcessor to stage the intermediate results (i.e. store them for further processing by the PostProcessing entry point).
|
|
ProcessPostRowProcessors ( int loadNumber, IList |
Processes the post-row processor methods. These are methods that optionally run subsequent to a row successfully processing, that generate some desired side-effect.
|
|
RemoveDataSourceSpecificExistences ( IEnumerable |
Removes the data source specific existences.
|
|
RemoveDataSourceSpecificLookups ( IEnumerable |
Removes the data source specific lookups.
|
메소드 | 설명 | |
---|---|---|
AcquireParser ( FeedFilePlan plan ) : IParser |
Helper which acquires the parser either from the description in the FeedFilePlan (it favors this one), or if that's missing, from the ReadyToUseSubPlan.
|
|
AcquirePostPostProcessors ( IReadyToUseSubPlan readyToUseSubPlan ) : void |
The DataSourcePlan has a set of PostProcessors, identified by fully-qualified assembly name. If there is a readyToUseSubPlan, and it has postprocessors, it will add those first. A ReadyToUsePlan (possibly null) they specify processors to be fired first.
|
|
AddDataSourceSpecificExistences ( ) : IEnumerable |
Adds the data source specific existence Objects. These are described in the DataSourcePlan. They will be instantiated, and then later removed from the global set of Existence objects when processing this datasource is complete.
|
|
AddDataSourceSpecificLookups ( ) : IEnumerable |
Adds the data source specific lookups. These are also described in the DataSourcePlan. They will be instantiated, and then later removed from the global set of Lookup objects when processing this datasource is complete.
|
|
AddToBadOrWarnRowsDataTable ( |
Helper function for adding rows to data table that takes the individual arguments. This makes it possible to do this without a BadRowException being present, as in the case of LitmusTests.
|
|
AddToWarnRowsDataTable ( |
Helper function that adds all the warning rows for a given input row to the WarnRows datatable.
|
|
AssertPasswordSanity ( string>.IDictionary |
Just a check for a mistake that has been made for FFT. Makes sure that, if we have calculated a PasswordImportState of "1", then there needs to be a PasswordHash.
|
|
FormXmlDocumentFromRowData ( IList |
Produces a simple xml object from the row Data. The reason to do it this way is that the BadRows table has to support any feed, with any schema. Instead of using a blob or nvarchar(max) column, the Xml data type is queryable.
|
|
GetFeedStager ( ) : IFeedStager |
Gets the feed stager from either the readyToUsePlan or instantiates it through reflection from the main Plan.
|
|
InstantiatePostProcessor ( |
Instantiates a single PostProcessor.
|
|
PerformLitmusTest ( IList |
This function is called for litmustest functions specified in the FeedFileMap.
|
|
ProcessLitmusTests ( IList |
Processes the litmus tests.
|
|
ProcessWarningTests ( IList |
Processes the warning tests. Warning Tests are litmus tests, the only difference being that the handling of a failure is different. Warning tests cause the row to be copied to the WarnRows table, but we still process the row.
|
|
RunPostProcessors ( int loadNum, IEnumerable |
||
SetUpDataTable ( FeedFilePlan feedFilePlan ) : |
Creates and sets up the DataTable with column information.
|
|
SetupBadOrWarnRowsDataTable ( ) : |
Instantiates and builds the column definitions for the bad rows DataTable.
|
public AddToBadRowsDataTable ( |
||
badRowDataTable | The data table to add to. | |
dataSourceCode | string | The DataSourceCode. |
brex | The BadRowException that has contextual information. | |
rowData | IList |
The raw parsed row data. |
리턴 | void |
public InvokePostRowProcessor ( int loadNumber, IList |
||
loadNumber | int | |
row | IList |
The raw data row. |
rowInProgress | string>.IDictionary | The completed output row. |
map | IMethodMap | An IMethodMap that describes how to perform the PostRowProcessor. /// |
리턴 | void |
public PostProcess ( int loadNum, IReadyToUseSubPlan readyToUseSubPlan ) : void | ||
loadNum | int | |
readyToUseSubPlan | IReadyToUseSubPlan | |
리턴 | void |
public ProcessPostRowProcessors ( int loadNumber, IList |
||
loadNumber | int | The load number. |
parsedInputRow | IList |
The raw row. |
transformedRow | string>.IDictionary | The complete output row. |
plan | FeedFilePlan | A FeedFilePlan with PostRowProcessorDescriptors. |
리턴 | void |
public RemoveDataSourceSpecificExistences ( IEnumerable |
||
existenceKeys | IEnumerable |
Existence keys. |
리턴 | void |
public RemoveDataSourceSpecificLookups ( IEnumerable |
||
lookupKeys | IEnumerable |
Lookup keys. |
리턴 | void |