KEY_IN
- VALUE_IN
- KEY_OUT
- VALUE_OUT
- public abstract class BatchSQLEngine<KEY_IN,VALUE_IN,KEY_OUT,VALUE_OUT> extends Object implements SQLEngine<KEY_IN,VALUE_IN,KEY_OUT,VALUE_OUT>
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_TYPE |
Constructor and Description |
---|
BatchSQLEngine() |
Modifier and Type | Method and Description |
---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer)
Configure an ETL pipeline, registering datasets and plugins that the stage needs.
|
void |
onRunFinish(boolean succeeded,
RuntimeContext context)
Invoked after the run finishes.
|
void |
prepareRun(RuntimeContext context)
Prepare the run.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canJoin, cleanup, exists, getPullProvider, getPushProvider, join
public static final String PLUGIN_TYPE
public void configurePipeline(PipelineConfigurer pipelineConfigurer)
PipelineConfigurable
ValidationException
if there are any
invalid config properties, or if the input or output schema is not compatible. Output schema should also be set.
This method is called many times during the lifecycle of a pipeline so it should not generate any side effects.
When the pipeline is being constructed, this is called in order to validate the pipeline and
propagate schema. Any datasets registered at this time will be ignored. Config properties that contain macros
will not have been evaluated yet.
When the pipeline is deployed, this is called in order to validate the pipeline and create any datasets that
are registered. Config properties that contain macros will not have been evaluated yet.configurePipeline
in interface PipelineConfigurable
pipelineConfigurer
- the configurer used to register required datasets and pluginspublic void prepareRun(RuntimeContext context) throws Exception
SubmitterLifecycle
prepareRun
in interface SubmitterLifecycle<RuntimeContext>
context
- submitter contextException
- if there's an error during this method invocationpublic void onRunFinish(boolean succeeded, RuntimeContext context)
SubmitterLifecycle
onRunFinish
in interface SubmitterLifecycle<RuntimeContext>
succeeded
- defines the result of batch execution: true if run succeeded, false otherwisecontext
- submitter contextCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.