|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.trans.step.BaseStepMeta
public class BaseStepMeta
Field Summary | |
---|---|
static LoggingObjectInterface |
loggingObject
|
static String |
STEP_ATTRIBUTES_FILE
|
Constructor Summary | |
---|---|
BaseStepMeta()
|
Method Summary | |
---|---|
void |
analyseImpact(List<DatabaseImpact> impact,
TransMeta transMeta,
StepMeta stepMeta,
RowMetaInterface prev,
String[] input,
String[] output,
RowMetaInterface info)
Each step must be able to report on the impact it has on a database, table field, etc. |
void |
cancelQueries()
Call this to cancel trailing database queries (too long running, etc) |
Object |
clone()
|
boolean |
excludeFromCopyDistributeVerification()
This method is added to exclude certain steps from copy/distribute checking. |
boolean |
excludeFromRowLayoutVerification()
This method is added to exclude certain steps from layout checking. |
String |
exportResources(VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface resourceNamingInterface,
Repository repository)
|
KettleAttributeInterface |
findAttribute(String key)
|
KettleAttributeInterface |
findParent(List<KettleAttributeInterface> attributes,
String parentId)
|
String |
getDescription(String attributeKey)
|
String |
getDialogClassName()
This returns the expected name for the dialog that edits a job entry. |
void |
getFields(RowMetaInterface inputRowMeta,
String name,
RowMetaInterface[] info,
StepMeta nextStep,
VariableSpace space)
|
LogChannelInterface |
getLog()
|
String |
getLogChannelId()
|
String |
getName()
|
String |
getObjectCopy()
|
ObjectId |
getObjectId()
|
ObjectRevision |
getObjectRevision()
|
LoggingObjectType |
getObjectType()
|
List<StreamInterface> |
getOptionalStreams()
|
LoggingObjectInterface |
getParent()
|
StepMeta |
getParentStepMeta()
|
String |
getRepCode(String attributeKey)
|
RepositoryDirectory |
getRepositoryDirectory()
|
RowMetaInterface |
getRequiredFields()
Deprecated. |
RowMetaInterface |
getRequiredFields(VariableSpace space)
The natural way of data flow in a transformation is source-to-target. |
List<ResourceReference> |
getResourceDependencies(TransMeta transMeta,
StepMeta stepInfo)
Get a list of all the resource dependencies that the step is depending on. |
SQLStatement |
getSQLStatements(TransMeta transMeta,
StepMeta stepMeta,
RowMetaInterface prev)
Standard method to return one or more SQLStatement objects that the step needs in order to work correctly. |
List<StepInjectionMetaEntry> |
getStepInjectionMetadataEntries(Class<?> PKG)
Describe the metadata attributes that can be injected into this step metadata object. |
StepIOMetaInterface |
getStepIOMeta()
Returns the Input/Output metadata for this step. |
StepMetaInjectionInterface |
getStepMetaInjectionInterface()
|
TransMeta.TransformationType[] |
getSupportedTransformationTypes()
|
RowMetaInterface |
getTableFields()
|
String |
getTooltip(String attributeKey)
|
Map<String,String> |
getUsedArguments()
Default a step doesn't use any arguments. |
DatabaseMeta[] |
getUsedDatabaseConnections()
This method returns all the database connections that are used by the step. |
String[] |
getUsedLibraries()
|
String |
getXML()
Produces the XML string that describes this step's information. |
String |
getXmlCode(String attributeKey)
|
void |
handleStreamSelection(StreamInterface stream)
When an optional stream is selected, this method is called to handled the ETL metadata implications of that. |
boolean |
hasChanged()
|
boolean |
hasRepositoryReferences()
|
boolean |
isBasic()
|
boolean |
isDebug()
|
boolean |
isDetailed()
|
boolean |
isRowLevel()
|
void |
logBasic(String message)
|
void |
logBasic(String message,
Object... arguments)
|
void |
logDebug(String message)
|
void |
logDebug(String message,
Object... arguments)
|
void |
logDetailed(String message)
|
void |
logDetailed(String message,
Object... arguments)
|
void |
logError(String message)
|
void |
logError(String message,
Object... arguments)
|
void |
logError(String message,
Throwable e)
|
void |
logMinimal(String message)
|
void |
logMinimal(String message,
Object... arguments)
|
void |
logRowlevel(String message)
|
void |
logRowlevel(String message,
Object... arguments)
|
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import |
void |
resetStepIoMeta()
|
void |
searchInfoAndTargetSteps(List<StepMeta> steps)
Change step names into step objects to allow them to be name-changed etc. |
void |
setChanged()
|
void |
setChanged(boolean ch)
|
void |
setParentStepMeta(StepMeta parentStepMeta)
|
boolean |
supportsErrorHandling()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final LoggingObjectInterface loggingObject
public static final String STEP_ATTRIBUTES_FILE
Constructor Detail |
---|
public BaseStepMeta()
Method Detail |
---|
public Object clone()
clone
in class Object
public void setChanged(boolean ch)
public void setChanged()
public boolean hasChanged()
public RowMetaInterface getTableFields()
public String getXML() throws KettleException
KettleValueException
- in case there is an XML conversion or encoding error
KettleException
public void getFields(RowMetaInterface inputRowMeta, String name, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space) throws KettleStepException
KettleStepException
public void analyseImpact(List<DatabaseImpact> impact, TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info) throws KettleStepException
impact
- The list of impacts @see org.pentaho.di.transMeta.DatabaseImpacttransMeta
- The transformation informationstepMeta
- The step informationprev
- The fields entering this stepinput
- The previous step namesoutput
- The output step namesinfo
- The fields used as information by this step
KettleStepException
public SQLStatement getSQLStatements(TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev) throws KettleStepException
transMeta
- TransInfo object containing the complete transformationstepMeta
- StepMeta object containing the complete stepprev
- Row containing meta-data for the input fields (no data)
KettleStepException
public void cancelQueries() throws KettleDatabaseException
KettleDatabaseException
public Map<String,String> getUsedArguments()
public RowMetaInterface getRequiredFields() throws KettleException
KettleException
- in case the required fields can't be determinedpublic RowMetaInterface getRequiredFields(VariableSpace space) throws KettleException
space
- the variable space to use to do variable substitution.
KettleException
- in case the required fields can't be determinedpublic DatabaseMeta[] getUsedDatabaseConnections()
public String[] getUsedLibraries()
public boolean supportsErrorHandling()
public boolean excludeFromRowLayoutVerification()
public boolean excludeFromCopyDistributeVerification()
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo)
public String exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface resourceNamingInterface, Repository repository) throws KettleException
KettleException
public String getDialogClassName()
public StepMeta getParentStepMeta()
public void setParentStepMeta(StepMeta parentStepMeta)
public LogChannelInterface getLog()
public boolean isBasic()
public boolean isDetailed()
public boolean isDebug()
public boolean isRowLevel()
public void logMinimal(String message)
public void logMinimal(String message, Object... arguments)
public void logBasic(String message)
public void logBasic(String message, Object... arguments)
public void logDetailed(String message)
public void logDetailed(String message, Object... arguments)
public void logDebug(String message)
public void logDebug(String message, Object... arguments)
public void logRowlevel(String message)
public void logRowlevel(String message, Object... arguments)
public void logError(String message)
public void logError(String message, Throwable e)
public void logError(String message, Object... arguments)
public String getLogChannelId()
public String getName()
public String getObjectCopy()
public ObjectId getObjectId()
public ObjectRevision getObjectRevision()
public LoggingObjectType getObjectType()
public LoggingObjectInterface getParent()
public RepositoryDirectory getRepositoryDirectory()
public StepIOMetaInterface getStepIOMeta()
public List<StreamInterface> getOptionalStreams()
public void handleStreamSelection(StreamInterface stream)
stream
- The optional stream to handle.public void resetStepIoMeta()
public void searchInfoAndTargetSteps(List<StepMeta> steps)
steps
- the steps to referencepublic StepMetaInjectionInterface getStepMetaInjectionInterface()
public List<StepInjectionMetaEntry> getStepInjectionMetadataEntries(Class<?> PKG)
public KettleAttributeInterface findParent(List<KettleAttributeInterface> attributes, String parentId)
findParent
in interface StepAttributesInterface
public KettleAttributeInterface findAttribute(String key)
findAttribute
in interface StepAttributesInterface
public String getXmlCode(String attributeKey)
getXmlCode
in interface StepAttributesInterface
public String getRepCode(String attributeKey)
getRepCode
in interface StepAttributesInterface
public String getDescription(String attributeKey)
getDescription
in interface StepAttributesInterface
public String getTooltip(String attributeKey)
getTooltip
in interface StepAttributesInterface
public TransMeta.TransformationType[] getSupportedTransformationTypes()
public boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository) throws KettleException
repository
- the repository to reference.
KettleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |