Class ExtractViaQueryStep
java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.AbstractExtractStep
com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.ExtractViaQueryStep
- All Implemented Interfaces:
BackendStep
- Direct Known Subclasses:
ExtractViaBasepullQueryStep
,GarbageCollectorExtractStep
,RunRecordScriptExtractStep
Generic implementation of an ExtractStep - that runs a Query action for a
specified table.
If a query is specified from the caller (e.g., using the process Callback
mechanism), that will be used. Else a filter (object or json) in
StreamedETLWithFrontendProcess.FIELD_DEFAULT_QUERY_FILTER will be checked.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRecordPipe
(RunBackendStepInput runBackendStepInput, Integer overrideCapacity) Create the record pipe to be used for this process step.protected void
customizeInputPreQuery
(QueryInput queryInput) chance for sub-classes to change things about the query input, if they want.doCount
(RunBackendStepInput runBackendStepInput) protected QQueryFilter
getQueryFilter
(RunBackendStepInput runBackendStepInput) void
preRun
(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) Allow subclasses to do an action before the run begins.void
run
(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) Execute the backend step - using the request as input, and the result as output.Methods inherited from class com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend.AbstractExtractStep
getLimit, getRecordPipe, setLimit, setRecordPipe
-
Field Details
-
FIELD_SOURCE_TABLE
- See Also:
-
-
Constructor Details
-
ExtractViaQueryStep
public ExtractViaQueryStep()
-
-
Method Details
-
preRun
public void preRun(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException Description copied from class:AbstractExtractStep
Allow subclasses to do an action before the run begins.- Overrides:
preRun
in classAbstractExtractStep
- Throws:
QException
-
run
public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException Execute the backend step - using the request as input, and the result as output.- Throws:
QException
-
customizeInputPreQuery
chance for sub-classes to change things about the query input, if they want. -
doCount
- Overrides:
doCount
in classAbstractExtractStep
- Throws:
QException
-
getQueryFilter
- Throws:
QException
-
createRecordPipe
public RecordPipe createRecordPipe(RunBackendStepInput runBackendStepInput, Integer overrideCapacity) Create the record pipe to be used for this process step.- Overrides:
createRecordPipe
in classAbstractExtractStep
-