Class OETLOrientDBLoader
java.lang.Object
com.orientechnologies.orient.etl.OETLAbstractComponent
com.orientechnologies.orient.etl.loader.OETLAbstractLoader
com.orientechnologies.orient.etl.loader.OETLOrientDBLoader
- All Implemented Interfaces:
OETLLoader,OETLComponent,AutoCloseable
ETL Loader that saves record into OrientDB database.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected AtomicLongprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected Stringprotected OETLOrientDBLoader.DB_TYPEprotected Stringprotected Stringprotected static final Stringprotected OClassprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class com.orientechnologies.orient.etl.loader.OETLAbstractLoader
progressFields inherited from class com.orientechnologies.orient.etl.OETLAbstractComponent
configuration, context, ifExpression, output, processor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidautoCreateProperties(ODatabaseDocument db, Object input) protected voidprotected voidautoCreatePropertiesOnElement(ODatabaseDocument db, OVertex element) voidvoidbeginLoader(OETLPipeline pipeline) voidclose()voidconfigure(ODocument conf, OCommandContext iContext) Called by the @OETLProcessorprotected voidcreateProperty(OClass cls, String f, Object fValue) voidend()protected ODatabasePoolgetName()Return the symbolic name of the componentprotected OClassgetOrCreateClass(ODatabaseDocument db, String iClassName, String iSuperClass) getPool()getUnit()voidload(ODatabaseDocument db, Object input, OCommandContext context) voidMethods inherited from class com.orientechnologies.orient.etl.loader.OETLAbstractLoader
getProgressMethods inherited from class com.orientechnologies.orient.etl.OETLAbstractComponent
debug, error, error, format, getCommonConfigurationParameters, getContext, getIfFilter, getProcessor, info, resolve, setProcessor, skip, stringArray2Json, toString, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.etl.OETLComponent
getContext, getProcessor, setProcessor
-
Field Details
-
NOT_DEF
- See Also:
-
pool
-
orient
-
clusterName
-
className
-
schemaClass
-
dbURL
-
dbUser
-
dbPassword
-
serverUser
-
serverPassword
-
dbAutoCreate
protected boolean dbAutoCreate -
dbAutoDropIfExists
protected boolean dbAutoDropIfExists -
dbAutoCreateProperties
protected boolean dbAutoCreateProperties -
useLightweightEdges
protected boolean useLightweightEdges -
standardElementConstraints
protected boolean standardElementConstraints -
tx
protected boolean tx -
batchCommitSize
protected int batchCommitSize -
batchCounter
-
dbType
-
wal
protected boolean wal -
txUseLog
protected boolean txUseLog -
skipDuplicates
protected boolean skipDuplicates
-
-
Constructor Details
-
OETLOrientDBLoader
public OETLOrientDBLoader()
-
-
Method Details
-
getPool
-
load
-
autoCreateProperties
-
autoCreatePropertiesOnElement
-
autoCreatePropertiesOnDocument
-
getUnit
-
rollback
-
getOrCreateClass
-
createProperty
-
getConfiguration
- Specified by:
getConfigurationin interfaceOETLComponent- Overrides:
getConfigurationin classOETLAbstractComponent- Returns:
-
configure
Description copied from interface:OETLComponentCalled by the @OETLProcessor- Specified by:
configurein interfaceOETLComponent- Overrides:
configurein classOETLAbstractComponent
-
begin
- Specified by:
beginin interfaceOETLComponent- Overrides:
beginin classOETLAbstractComponent
-
beginLoader
- Specified by:
beginLoaderin interfaceOETLLoader- Overrides:
beginLoaderin classOETLAbstractLoader
-
getDatabasePool
-
end
public void end()- Specified by:
endin interfaceOETLComponent- Overrides:
endin classOETLAbstractComponent
-
close
public void close() -
getName
Description copied from interface:OETLComponentReturn the symbolic name of the component- Returns:
- the name of the component
-