Class StreamedETLWithFrontendProcess
java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.StreamedETLWithFrontendProcess
Definition for Streamed ETL process that includes a frontend.
This process uses 3 backend steps, and 2 frontend steps, as follows:
- preview (backend) - does just a little work (limited # of rows), to give the
user a preview of what the final result will be - e.g., some data to seed the review screen
- review (frontend) - a review screen
- validate (backend) - optionally (per input on review screen), does like the preview step,
but on all records from the extract step.
- review (frontend) - a second view of the review screen, if the validate step was executed.
- execute (backend) - processes all the rows, does all the work.
- result (frontend) - a result screen
The preview invalid input: '&' execute steps use additional BackendStep codes:
- Extract - gets the rows to be processed. Used in preview (but only for a
limited number of rows), and execute (without limit)
- Transform - do whatever transformation is needed to the rows. Done on preview
and execute. Always works with a "page" of records at a time.
- Load - store the records into the backend, as appropriate. Always works
with a "page" of records at a time. Only called by execute step.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QProcessMetaData
defineProcessMetaData
(Class<? extends AbstractExtractStep> extractStepClass, Class<? extends AbstractTransformStep> transformStepClass, Class<? extends AbstractLoadStep> loadStepClass, Map<String, Serializable> defaultFieldValues) static QProcessMetaData
defineProcessMetaData
(String sourceTableName, String destinationTableName, Class<? extends AbstractExtractStep> extractStepClass, Class<? extends AbstractTransformStep> transformStepClass, Class<? extends AbstractLoadStep> loadStepClass) static void
resetValidationFields
(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) useful for a process step to call upon 'back'
-
Field Details
-
STEP_NAME_PREVIEW
- See Also:
-
STEP_NAME_REVIEW
- See Also:
-
STEP_NAME_VALIDATE
- See Also:
-
STEP_NAME_EXECUTE
- See Also:
-
STEP_NAME_RESULT
- See Also:
-
FIELD_EXTRACT_CODE
- See Also:
-
FIELD_TRANSFORM_CODE
- See Also:
-
FIELD_LOAD_CODE
- See Also:
-
FIELD_SOURCE_TABLE
- See Also:
-
FIELD_DESTINATION_TABLE
- See Also:
-
FIELD_RECORD_COUNT
- See Also:
-
FIELD_DEFAULT_QUERY_FILTER
- See Also:
-
FIELD_FETCH_HEAVY_FIELDS
- See Also:
-
FIELD_INCLUDE_ASSOCIATIONS
- See Also:
-
FIELD_SUPPORTS_FULL_VALIDATION
- See Also:
-
FIELD_DO_FULL_VALIDATION
- See Also:
-
FIELD_VALIDATION_SUMMARY
- See Also:
-
FIELD_PROCESS_SUMMARY
- See Also:
-
DEFAULT_PREVIEW_MESSAGE_FOR_INSERT
- See Also:
-
DEFAULT_PREVIEW_MESSAGE_FOR_UPDATE
- See Also:
-
DEFAULT_PREVIEW_MESSAGE_FOR_INSERT_OR_UPDATE
- See Also:
-
DEFAULT_PREVIEW_MESSAGE_FOR_DELETE
- See Also:
-
DEFAULT_PREVIEW_MESSAGE_PREFIX
- See Also:
-
FIELD_PREVIEW_MESSAGE
- See Also:
-
FIELD_TRANSACTION_LEVEL
- See Also:
-
TRANSACTION_LEVEL_AUTO_COMMIT
- See Also:
-
TRANSACTION_LEVEL_PAGE
- See Also:
-
TRANSACTION_LEVEL_PROCESS
- See Also:
-
-
Constructor Details
-
StreamedETLWithFrontendProcess
public StreamedETLWithFrontendProcess()
-
-
Method Details
-
defineProcessMetaData
public static QProcessMetaData defineProcessMetaData(String sourceTableName, String destinationTableName, Class<? extends AbstractExtractStep> extractStepClass, Class<? extends AbstractTransformStep> transformStepClass, Class<? extends AbstractLoadStep> loadStepClass) -
defineProcessMetaData
public static QProcessMetaData defineProcessMetaData(Class<? extends AbstractExtractStep> extractStepClass, Class<? extends AbstractTransformStep> transformStepClass, Class<? extends AbstractLoadStep> loadStepClass, Map<String, Serializable> defaultFieldValues) - Parameters:
defaultFieldValues
- - expected to possibly contain values for the following field names: - FIELD_SOURCE_TABLE - FIELD_DESTINATION_TABLE - FIELD_SUPPORTS_FULL_VALIDATION - FIELD_DEFAULT_QUERY_FILTER - FIELD_DO_FULL_VALIDATION - FIELD_PREVIEW_MESSAGE
-
resetValidationFields
public static void resetValidationFields(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) useful for a process step to call upon 'back' -
processMetaDataBuilder
-