Class OETLFileSource
java.lang.Object
com.orientechnologies.orient.etl.OETLAbstractComponent
com.orientechnologies.orient.etl.source.OETLAbstractSource
com.orientechnologies.orient.etl.source.OETLFileSource
- All Implemented Interfaces:
OETLComponent,OETLSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected FileChannelprotected Stringprotected InputStreamReaderprotected InputStreamprotected FileLockprotected booleanprotected Stringprotected RandomAccessFileprotected booleanprotected longprotected longFields inherited from class com.orientechnologies.orient.etl.OETLAbstractComponent
configuration, context, ifExpression, output, processor -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
fileName
-
path
-
lockFile
protected boolean lockFile -
skipBOM
protected boolean skipBOM -
byteParsed
protected long byteParsed -
byteToParse
protected long byteToParse -
skipFirst
protected long skipFirst -
skipLast
protected long skipLast -
raf
-
channel
-
fileReader
-
fis
-
lock
-
-
Constructor Details
-
OETLFileSource
public OETLFileSource()
-
-
Method Details
-
getUnit
-
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
-
end
public void end()- Specified by:
endin interfaceOETLComponent- Overrides:
endin classOETLAbstractComponent
-
getName
Description copied from interface:OETLComponentReturn the symbolic name of the component- Returns:
- the name of the component
-
begin
- Specified by:
beginin interfaceOETLComponent- Overrides:
beginin classOETLAbstractComponent
-
isClosed
public boolean isClosed() -
getFileReader
-
read
-