Package com.orientechnologies.orient.etl
Class OETLProcessor
java.lang.Object
com.orientechnologies.orient.etl.OETLProcessor
- All Implemented Interfaces:
AutoCloseable
ETL processor class.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com) (l.garulli-at-orientdb.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OETLContextprotected TimerTaskprotected longprotected OETLExtractorprotected final OETLComponentFactoryprotected booleanprotected OETLLoaderprotected Levelprotected intprotected OETLSourceprotected longprotected final OETLProcessor.OETLProcessorStatsprotected List<OETLTransformer>protected int -
Constructor Summary
ConstructorsConstructorDescriptionOETLProcessor(List<OETLBlock> iBeginBlocks, OETLSource iSource, OETLExtractor iExtractor, List<OETLTransformer> iTransformers, OETLLoader iLoader, List<OETLBlock> iEndBlocks, OETLContext iContext) Creates an ETL processor by setting all the components on construction. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbegin()protected voidcheckTypeCompatibility(OETLComponent iCurrentComponent, OETLComponent iLastComponent) voidclose()protected voidconfigRunBehaviour(OCommandContext context) protected voidprotected voidend()voidexecute()protected ClassgetClassByName(OETLComponent iComponent, String iClassName) getStats()static void
-
Field Details
-
factory
-
stats
-
endBlocks
-
transformers
-
beginBlocks
-
source
-
extractor
-
loader
-
context
-
startTime
protected long startTime -
elapsed
protected long elapsed -
dumpTask
-
logLevel
-
haltOnError
protected boolean haltOnError -
maxRetries
protected int maxRetries -
workers
protected int workers
-
-
Constructor Details
-
OETLProcessor
public OETLProcessor(List<OETLBlock> iBeginBlocks, OETLSource iSource, OETLExtractor iExtractor, List<OETLTransformer> iTransformers, OETLLoader iLoader, List<OETLBlock> iEndBlocks, OETLContext iContext) Creates an ETL processor by setting all the components on construction.- Parameters:
iBeginBlocks- List of Blocks to execute at the beginning of processingiSource- Source componentiExtractor- Extractor componentiTransformers- List of TransformersiLoader- Loader componentiEndBlocks- List of Blocks to execute at the end of processingiContext- Execution Context
-
-
Method Details
-
main
-
configRunBehaviour
-
getStats
-
getExtractor
-
getSource
-
getLoader
-
getTransformers
-
getLogLevel
-
getContext
-
execute
public void execute() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
begin
protected void begin() -
end
protected void end() -
dumpProgress
protected void dumpProgress() -
analyzeFlow
protected void analyzeFlow() -
checkTypeCompatibility
protected void checkTypeCompatibility(OETLComponent iCurrentComponent, OETLComponent iLastComponent) -
getClassByName
-
getFactory
-