|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.di.core.changed.ChangedFlag
org.pentaho.di.trans.TransMeta
public class TransMeta
This class defines a transformation and offers methods to save and load it from XML or a PDI database repository.
Nested Class Summary | |
---|---|
static class |
TransMeta.TransformationType
|
Field Summary | |
---|---|
static String[] |
desc_type_undo
|
static org.pentaho.di.repository.RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE
|
static String |
STRING_TRANSMETA
|
static int |
TYPE_UNDO_CHANGE
|
static int |
TYPE_UNDO_DELETE
|
static int |
TYPE_UNDO_NEW
|
static int |
TYPE_UNDO_POSITION
|
static String |
XML_TAG
|
static String |
XML_TAG_CLUSTERSCHEMAS
|
static String |
XML_TAG_NOTEPADS
|
static String |
XML_TAG_PARAMETERS
|
static String |
XML_TAG_PARTITIONSCHEMAS
|
static String |
XML_TAG_SLAVESERVERS
|
Constructor Summary | |
---|---|
TransMeta()
Builds a new empty transformation. |
|
TransMeta(InputStream xmlStream,
Repository rep,
boolean setInternalVariables,
org.pentaho.di.core.variables.VariableSpace parentVariableSpace,
org.pentaho.di.core.gui.OverwritePrompter prompter)
|
|
TransMeta(Node transnode,
Repository rep)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
boolean setInternalVariables)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables,
org.pentaho.di.core.variables.VariableSpace parentVariableSpace)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables,
org.pentaho.di.core.variables.VariableSpace parentVariableSpace,
org.pentaho.di.core.gui.OverwritePrompter prompter)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String filename,
String name,
String[] arguments)
Constructs a new transformation specifying the filename, name and arguments. |
|
TransMeta(String fname,
org.pentaho.di.core.variables.VariableSpace parentVariableSpace)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(org.pentaho.di.core.variables.VariableSpace parent)
Builds a new empty transformation with a set of variables to inherit from. |
Method Summary | |
---|---|
void |
activateParameters()
|
void |
addDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
Add a database connection to the transformation. |
void |
addDatabase(int p,
org.pentaho.di.core.database.DatabaseMeta ci)
Add a database connection to the transformation on a certain location. |
void |
addDependency(int p,
TransDependency td)
Add a new dependency to the transformation on a certain location |
void |
addDependency(TransDependency td)
Add a new dependency to the transformation. |
void |
addFilenameChangedListener(FilenameChangedListener listener)
|
void |
addNameChangedListener(NameChangedListener listener)
|
void |
addNote(int p,
NotePadMeta ni)
Add a new note to the transformation on a certain location. |
void |
addNote(NotePadMeta ni)
Add a new note to the transformation. |
void |
addOrReplaceClusterSchema(ClusterSchema clusterSchema)
Add a new cluster schema to the transformation if that didn't exist yet. |
void |
addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
Add a database connection to the transformation if that connection didn't exists yet. |
void |
addOrReplacePartitionSchema(PartitionSchema partitionSchema)
Add a new partition schema to the transformation if that didn't exist yet. |
void |
addOrReplaceSlaveServer(SlaveServer slaveServer)
Add a new slave server to the transformation if that didn't exist yet. |
void |
addOrReplaceStep(StepMeta stepMeta)
Add a new step to the transformation if that step didn't exist yet. |
void |
addParameterDefinition(String key,
String defaultValue,
String description)
|
void |
addStep(int p,
StepMeta stepMeta)
Add a new step to the transformation |
void |
addStep(StepMeta stepMeta)
Add a new step to the transformation |
void |
addTransHop(int p,
TransHopMeta hi)
Add a new hop to the transformation on a certain location. |
void |
addTransHop(TransHopMeta hi)
Add a new hop to the transformation. |
void |
addUndo(Object[] from,
Object[] to,
int[] pos,
org.pentaho.di.core.gui.Point[] prev,
org.pentaho.di.core.gui.Point[] curr,
int type_of_change,
boolean nextAlso)
Add an undo operation to the undo list |
void |
analyseImpact(List<DatabaseImpact> impact,
org.pentaho.di.core.ProgressMonitorListener monitor)
This procedure determines the impact of the different steps in a transformation on databases, tables and field. |
void |
cancelQueries()
Cancel queries opened for checking & fieldprediction |
boolean |
canSave()
|
void |
checkRowMixingStatically(StepMeta stepMeta,
org.pentaho.di.core.ProgressMonitorListener monitor)
Check a step to see if there are no multiple steps to read from. |
void |
checkSteps(List<org.pentaho.di.core.CheckResultInterface> remarks,
boolean only_selected,
org.pentaho.di.core.ProgressMonitorListener monitor)
Checks all the steps and fills a List of (CheckResult) remarks. |
void |
clear()
Clears the transformation. |
void |
clearCaches()
|
void |
clearChanged()
Clears the different changed flags of the transformation. |
void |
clearChangedDatabases()
Clears the different changed flags of the transformation. |
void |
clearParameters()
|
void |
clearUndo()
|
Object |
clone()
|
int |
compare(TransMeta t1,
TransMeta t2)
Compares two transformation on name, filename, repository directory, etc. |
int |
compareTo(TransMeta o)
|
void |
copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
|
void |
copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
|
String |
environmentSubstitute(String aString)
|
String[] |
environmentSubstitute(String[] aString)
|
boolean |
equals(Object obj)
|
void |
eraseParameters()
|
String |
exportResources(org.pentaho.di.core.variables.VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface resourceNamingInterface,
Repository repository)
Exports the object to a flat-file system, adding content with filename keys to a set of definitions. |
ClusterSchema |
findClusterSchema(String name)
Find a clustering schema using its name |
org.pentaho.di.core.database.DatabaseMeta |
findDatabase(String name)
Searches the list of databases for a database with a certain name |
ClusterSchema |
findFirstUsedClusterSchema()
|
StepMeta |
findMappingInputStep(String stepname)
|
StepMeta |
findMappingOutputStep(String stepname)
|
StepMeta |
findNextStep(StepMeta stepMeta,
int nr)
Deprecated. just get the next steps as an array |
List<StepMeta> |
findNextSteps(StepMeta stepMeta)
Retrieve a list of succeeding steps for a certain originating step. |
int |
findNrInfoSteps(StepMeta stepMeta)
Find the the number of informational steps for a certains step. |
int |
findNrNextSteps(StepMeta stepMeta)
Deprecated. just get the next steps as an array |
int |
findNrPrevSteps(StepMeta stepMeta)
Find the number of steps that precede the indicated step. |
int |
findNrPrevSteps(StepMeta stepMeta,
boolean info)
Deprecated. please use method findPreviousSteps |
int |
findNrPrevSteps(String stepname)
Deprecated. |
int |
findNrPrevSteps(String stepname,
boolean info)
Deprecated. |
PartitionSchema |
findPartitionSchema(String name)
Find a partition schema using its name. |
boolean |
findPrevious(StepMeta startStep,
StepMeta stepToFind)
Look in the transformation and see if we can find a step in a previous location starting somewhere. |
List<StepMeta> |
findPreviousSteps(StepMeta stepMeta)
Get the list of previous steps for a certain reference step. |
List<StepMeta> |
findPreviousSteps(StepMeta stepMeta,
boolean info)
Get the previous steps on a certain location taking into account the steps being informational or not. |
StepMeta |
findPrevStep(StepMeta stepMeta,
int nr)
Find the previous step on a certain location. |
StepMeta |
findPrevStep(StepMeta stepMeta,
int nr,
boolean info)
Deprecated. please use method findPreviousSteps |
StepMeta |
findPrevStep(String stepname,
int nr)
Deprecated. |
StepMeta |
findPrevStep(String stepname,
int nr,
boolean info)
Deprecated. |
SlaveServer |
findSlaveServer(String serverString)
|
StepMeta |
findStep(String name)
Searches the list of steps for a step with a certain name |
StepMeta |
findStep(String name,
StepMeta exclude)
Searches the list of steps for a step with a certain name while excluding one step. |
TransHopMeta |
findTransHop(StepMeta from,
StepMeta to)
Search all hops for a hop where a certain step is at the start and another is at the end. |
TransHopMeta |
findTransHop(StepMeta from,
StepMeta to,
boolean disabledToo)
Search all hops for a hop where a certain step is at the start and another is at the end. |
TransHopMeta |
findTransHop(String name)
Searches the list of hops for a hop with a certain name |
TransHopMeta |
findTransHop(TransHopMeta hi)
Find a certain hop in the transformation.. |
TransHopMeta |
findTransHopFrom(StepMeta fromstep)
Search all hops for a hop where a certain step is at the start. |
TransHopMeta |
findTransHopTo(StepMeta tostep)
Search all hops for a hop where a certain step is at the end. |
String |
getAlternativeStepname(String stepname)
Proposes an alternative stepname when the original already exists... |
String[] |
getArguments()
|
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
|
ChannelLogTable |
getChannelLogTable()
|
String[] |
getClusterSchemaNames()
|
List<ClusterSchema> |
getClusterSchemas()
|
String |
getContainerObjectId()
|
Hashtable<String,org.pentaho.di.core.Counter> |
getCounters()
|
Date |
getCreatedDate()
|
String |
getCreatedUser()
|
org.pentaho.di.core.database.DatabaseMeta |
getDatabase(int i)
Retrieves a database connection information a a certain location. |
String[] |
getDatabaseNames()
|
List<org.pentaho.di.core.database.DatabaseMeta> |
getDatabases()
Get an ArrayList of defined DatabaseInfo objects. |
org.pentaho.di.core.DBCache |
getDbCache()
|
String |
getDefaultExtension()
|
List<TransDependency> |
getDependencies()
|
TransDependency |
getDependency(int i)
Retrieves a dependency on a certain location. |
String |
getDescription()
Get the description of the transformation |
String |
getExtendedDescription()
Get the extended description of the transformation |
int |
getFeedbackSize()
|
String |
getFilename()
Get the filename (if any) of the transformation |
String |
getFileType()
|
String[] |
getFilterExtensions()
|
String[] |
getFilterNames()
|
StepMeta[] |
getInfoStep(StepMeta stepMeta)
Get the informational steps for a certain step. |
org.pentaho.di.core.logging.LogChannelInterface |
getLogChannel()
|
String |
getLogChannelId()
|
org.pentaho.di.core.logging.LogLevel |
getLogLevel()
|
List<org.pentaho.di.core.logging.LogTableInterface> |
getLogTables()
|
org.pentaho.di.core.database.DatabaseMeta |
getMaxDateConnection()
|
double |
getMaxDateDifference()
|
String |
getMaxDateField()
|
double |
getMaxDateOffset()
|
String |
getMaxDateTable()
|
org.pentaho.di.core.gui.Point |
getMaximum()
Get the maximum size of the canvas by calculating the maximum location of a step |
int |
getMaxUndo()
Get the maximum number of undo operations possible |
org.pentaho.di.core.gui.Point |
getMinimum()
Get the minimum point on the canvas of a transformation |
Date |
getModifiedDate()
|
String |
getModifiedUser()
|
String |
getName()
Get the name of the transformation |
String[] |
getNextStepNames(StepMeta stepMeta)
Retrieve an array of succeeding step names for a certain originating step. |
StepMeta[] |
getNextSteps(StepMeta stepMeta)
Deprecated. use findNextSteps instead |
NotePadMeta |
getNote(int i)
Retrieves notepad information on a certain location. |
NotePadMeta |
getNote(int x,
int y)
Find the note that is located on a certain point on the canvas. |
int[] |
getNoteIndexes(List<NotePadMeta> notes)
Get an array of the locations of an array of notes |
String |
getObjectCopy()
|
org.pentaho.di.repository.ObjectId |
getObjectId()
Get the database ID in the repository for this object. |
String |
getObjectName()
|
org.pentaho.di.repository.ObjectRevision |
getObjectRevision()
|
org.pentaho.di.core.logging.LoggingObjectType |
getObjectType()
|
String |
getParameterDefault(String key)
|
String |
getParameterDescription(String key)
|
String |
getParameterValue(String key)
|
org.pentaho.di.core.logging.LoggingObjectInterface |
getParent()
|
org.pentaho.di.core.variables.VariableSpace |
getParentVariableSpace()
|
List<PartitionSchema> |
getPartitionSchemas()
|
String[] |
getPartitionSchemasNames()
|
String |
getPathAndName()
|
PerformanceLogTable |
getPerformanceLogTable()
|
org.pentaho.di.core.row.RowMetaInterface |
getPrevInfoFields(StepMeta stepMeta)
Find the informational fields coming from an informational step into the step specified. |
org.pentaho.di.core.row.RowMetaInterface |
getPrevInfoFields(String stepname)
Find the informational fields coming from an informational step into the step specified. |
org.pentaho.di.core.Result |
getPreviousResult()
|
org.pentaho.di.core.row.RowMetaInterface |
getPrevStepFields(StepMeta stepMeta)
Find the fields that are entering a certain step. |
org.pentaho.di.core.row.RowMetaInterface |
getPrevStepFields(StepMeta stepMeta,
org.pentaho.di.core.ProgressMonitorListener monitor)
Find the fields that are entering a certain step. |
org.pentaho.di.core.row.RowMetaInterface |
getPrevStepFields(String stepname)
Find the fields that are entering a step with a certain name. |
String[] |
getPrevStepNames(StepMeta stepMeta)
Retrieve an array of preceding steps for a certain destination step. |
String[] |
getPrevStepNames(String stepname)
Retrieve an array of succeeding step names for a certain originating step name. |
StepMeta[] |
getPrevSteps(StepMeta stepMeta)
Retrieve an array of preceding steps for a certain destination step. |
Date |
getRegistrationDate()
Stub |
Repository |
getRepository()
|
org.pentaho.di.repository.RepositoryDirectoryInterface |
getRepositoryDirectory()
|
org.pentaho.di.repository.RepositoryObjectType |
getRepositoryElementType()
|
List<ResourceReference> |
getResourceDependencies()
|
List<org.pentaho.di.core.ResultFile> |
getResultFiles()
|
List<org.pentaho.di.core.RowMetaAndData> |
getResultRows()
|
org.pentaho.di.core.gui.Point[] |
getSelectedNoteLocations()
Get an array of all the selected step and note locations |
List<NotePadMeta> |
getSelectedNotes()
Get an array of all the selected notes |
org.pentaho.di.core.gui.Point[] |
getSelectedStepLocations()
Get an array of all the selected step and note locations |
String[] |
getSelectedStepNames()
Get an array of all the selected step names |
List<StepMeta> |
getSelectedSteps()
|
SharedObjects |
getSharedObjects()
|
String |
getSharedObjectsFile()
|
int |
getSizeRowset()
|
String[] |
getSlaveServerNames()
|
List<SlaveServer> |
getSlaveServers()
|
SlaveStepCopyPartitionDistribution |
getSlaveStepCopyPartitionDistribution()
|
int |
getSleepTimeEmpty()
|
int |
getSleepTimeFull()
|
List<org.pentaho.di.core.SQLStatement> |
getSQLStatements()
Builds a list of all the SQL statements that this transformation needs in order to work properly. |
List<org.pentaho.di.core.SQLStatement> |
getSQLStatements(org.pentaho.di.core.ProgressMonitorListener monitor)
Builds a list of all the SQL statements that this transformation needs in order to work properly. |
String |
getSQLStatementsString()
Get the SQL statements, needed to run this transformation, as one String. |
StepMeta |
getStep(int i)
Retrieves a step on a certain location. |
StepMeta |
getStep(int x,
int y,
int iconsize)
Find the step that is located on a certain point on the canvas, taking into account the icon size. |
org.pentaho.di.core.row.RowMetaInterface |
getStepFields(StepMeta stepMeta)
Returns the fields that are emitted by a certain step |
org.pentaho.di.core.row.RowMetaInterface |
getStepFields(StepMeta[] stepMeta)
|
org.pentaho.di.core.row.RowMetaInterface |
getStepFields(StepMeta stepMeta,
org.pentaho.di.core.ProgressMonitorListener monitor)
Returns the fields that are emitted by a certain step |
org.pentaho.di.core.row.RowMetaInterface |
getStepFields(StepMeta stepMeta,
StepMeta targetStep,
org.pentaho.di.core.ProgressMonitorListener monitor)
Returns the fields that are emitted by a certain step |
org.pentaho.di.core.row.RowMetaInterface |
getStepFields(String stepname)
Returns the fields that are emitted by a certain step name |
int[] |
getStepIndexes(List<StepMeta> steps)
Get an array of the locations of an array of steps |
StepLogTable |
getStepLogTable()
|
String[] |
getStepNames()
Get the names of all the steps. |
long |
getStepPerformanceCapturingDelay()
|
String |
getStepPerformanceCapturingSizeLimit()
|
List<StepMeta> |
getSteps()
Get an ArrayList of defined steps. |
StepMeta[] |
getStepsArray()
Get all the steps in an array. |
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes)
|
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes,
boolean includePasswords)
Get a list of all the strings used in this transformation. |
org.pentaho.di.core.row.RowMetaInterface |
getThisStepFields(StepMeta stepMeta,
StepMeta nextStep,
org.pentaho.di.core.row.RowMetaInterface row)
Returns the fields that are emitted by a step |
org.pentaho.di.core.row.RowMetaInterface |
getThisStepFields(StepMeta stepMeta,
StepMeta nextStep,
org.pentaho.di.core.row.RowMetaInterface row,
org.pentaho.di.core.ProgressMonitorListener monitor)
Returns the fields that are emitted by a step |
org.pentaho.di.core.row.RowMetaInterface |
getThisStepFields(String stepname,
org.pentaho.di.core.row.RowMetaInterface row)
Return the fields that are emitted by a step with a certain name |
TransMeta.TransformationType |
getTransformationType()
|
TransHopMeta |
getTransHop(int i)
Retrieves a hop on a certain location. |
List<StepMeta> |
getTransHopSteps(boolean all)
Gives you an List of all the steps that are at least used in one active hop. |
TransLogTable |
getTransLogTable()
|
int |
getTransstatus()
Get the status of the transformation |
String |
getTransversion()
Get the version of the transformation |
Map<String,String> |
getUsedArguments(String[] arguments)
Get the arguments used by this transformation. |
List<StepMeta> |
getUsedSteps()
|
List<String> |
getUsedVariables()
|
String |
getVariable(String variableName)
|
String |
getVariable(String variableName,
String defaultValue)
|
String |
getXML()
|
String |
getXML(boolean includeSteps,
boolean includeDatabase,
boolean includeSlaves,
boolean includeClusters,
boolean includePartitions)
|
boolean |
hasChanged()
Checks whether or not the transformation has changed. |
boolean |
hasLoop(StepMeta stepMeta)
See if there are any loops in the transformation, starting at the indicated step. |
boolean |
hasRepositoryReferences()
|
boolean |
haveClusterSchemasChanged()
Checks whether or not any of the clustering schemas have been changed. |
boolean |
haveConnectionsChanged()
Checks whether or not the connections have changed. |
boolean |
haveHopsChanged()
Checks whether or not any of the hops have been changed. |
boolean |
haveNotesChanged()
Checks whether or not any of the notes have been changed. |
boolean |
havePartitionSchemasChanged()
Checks whether or not any of the partitioning schemas have been changed. |
boolean |
haveStepsChanged()
Checks whether or not the steps have changed. |
int |
indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta ci)
Find the location of database |
int |
indexOfNote(NotePadMeta ni)
Find the location of a note |
int |
indexOfStep(StepMeta stepMeta)
Find the location of step |
int |
indexOfTransHop(TransHopMeta hi)
Find the location of hop |
void |
initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
|
void |
injectVariables(Map<String,String> prop)
|
boolean |
isCapturingStepPerformanceSnapShots()
|
boolean |
isDatabaseConnectionUsed(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
This method asks all steps in the transformation whether or not the specified database connection is used. |
boolean |
isFeedbackShown()
|
boolean |
isFileReference()
|
static boolean |
isFileReference(String exactFilename,
String exactTransname)
|
boolean |
isRepReference()
|
static boolean |
isRepReference(String exactFilename,
String exactTransname)
|
boolean |
isSlaveTransformation()
|
boolean |
isStepInformative(StepMeta this_step,
StepMeta prev_step)
Determines whether or not a certain step is informative. |
boolean |
isStepUsedInTransHops(StepMeta stepMeta)
Determines if a step has been used in a hop or not. |
boolean |
isUsingAClusterSchema()
|
boolean |
isUsingClusterSchema(ClusterSchema clusterSchema)
|
boolean |
isUsingPartitionSchema(PartitionSchema partitionSchema)
|
boolean |
isUsingSlaveServer(SlaveServer slaveServer)
|
boolean |
isUsingThreadPriorityManagment()
|
boolean |
isUsingUniqueConnections()
|
String[] |
listParameters()
|
String[] |
listVariables()
|
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables)
Parse a file containing the XML that describes the transformation. |
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables,
org.pentaho.di.core.variables.VariableSpace parentVariableSpace)
Parse a file containing the XML that describes the transformation. |
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables,
org.pentaho.di.core.variables.VariableSpace parentVariableSpace,
org.pentaho.di.core.gui.OverwritePrompter prompter)
Parse a file containing the XML that describes the transformation. |
void |
lookupRepositoryReferences(Repository repository)
Look up the references after import |
void |
lowerNote(int p)
|
void |
nameFromFilename()
Builds a name - if no name is set, yet - from the filename |
TransAction |
nextUndo()
Get the next undo transaction on the list. |
int |
nrDatabases()
Count the nr of databases in the transformation. |
int |
nrDependencies()
Count the nr of dependencies in the transformation. |
int |
nrNotes()
Count the nr of notes in the transformation. |
int |
nrSteps()
Count the nr of steps in the transformation. |
int |
nrTransHops()
Count the nr of hops in the transformation. |
boolean |
partOfTransHop(StepMeta stepMeta)
Determines whether or not a certain step is part of a hop. |
TransAction |
previousUndo()
Get the previous undo operation and change the undo pointer |
void |
raiseNote(int p)
|
SharedObjects |
readSharedObjects()
|
Object |
realClone(boolean doClear)
|
void |
removeAllDependencies()
Clears all the dependencies from the transformation. |
void |
removeDatabase(int i)
Removes a database from the transformation on a certain location. |
void |
removeDependency(int i)
Removes a dependency from the transformation on a certain location. |
void |
removeFilenameChangedListener(FilenameChangedListener listener)
|
void |
removeNameChangedListener(NameChangedListener listener)
|
void |
removeNote(int i)
Removes a note from the transformation on a certain location. |
void |
removeStep(int i)
Removes a step from the transformation on a certain location. |
void |
removeTransHop(int i)
Removes a hop from the transformation on a certain location. |
void |
saveSharedObjects()
|
void |
selectAll()
Mark all steps in the transformation as selected. |
void |
setArguments(String[] arguments)
|
void |
setCapturingStepPerformanceSnapShots(boolean capturingStepPerformanceSnapShots)
|
void |
setCarteObjectId(String containerObjectId)
|
void |
setChanged(boolean ch)
Sets the changed parameter of the transformation. |
void |
setChannelLogTable(ChannelLogTable channelLogTable)
|
void |
setClusterSchemas(List<ClusterSchema> clusterSchemas)
|
void |
setCounters(Hashtable<String,org.pentaho.di.core.Counter> counters)
|
void |
setCreatedDate(Date createdDate)
|
void |
setCreatedUser(String createdUser)
|
void |
setDatabases(List<org.pentaho.di.core.database.DatabaseMeta> databases)
|
void |
setDbCache(org.pentaho.di.core.DBCache dbCache)
|
void |
setDependencies(List<TransDependency> dependencies)
|
void |
setDescription(String n)
Set the description of the transformation. |
void |
setExtendedDescription(String n)
Set the extended description of the transformation. |
void |
setFeedbackShown(boolean feedbackShown)
|
void |
setFeedbackSize(int feedbackSize)
|
void |
setFilename(String fname)
Set the filename of the transformation |
void |
setInternalKettleVariables()
|
void |
setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
|
void |
setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
|
void |
setMaxDateConnection(org.pentaho.di.core.database.DatabaseMeta maxDateConnection)
|
void |
setMaxDateDifference(double maxDateDifference)
|
void |
setMaxDateField(String maxDateField)
|
void |
setMaxDateOffset(double maxDateOffset)
|
void |
setMaxDateTable(String maxDateTable)
|
void |
setMaxUndo(int mu)
Sets the maximum number of undo operations that are allowed. |
void |
setModifiedDate(Date modifiedDate)
|
void |
setModifiedUser(String modifiedUser)
|
void |
setName(String newName)
Set the name of the transformation. |
void |
setObjectId(org.pentaho.di.repository.ObjectId id)
Set the database ID for this object in the repository. |
void |
setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
|
void |
setParameterValue(String key,
String value)
|
void |
setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
|
void |
setPartitionSchemas(List<PartitionSchema> partitionSchemas)
|
void |
setPerformanceLogTable(PerformanceLogTable performanceLogTable)
|
void |
setPreviousResult(org.pentaho.di.core.Result previousResult)
|
void |
setRepository(Repository repository)
|
void |
setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory)
|
void |
setResultFiles(List<org.pentaho.di.core.ResultFile> resultFiles)
|
void |
setResultRows(List<org.pentaho.di.core.RowMetaAndData> resultRows)
|
void |
setSharedObjects(SharedObjects sharedObjects)
|
void |
setSharedObjectsFile(String sharedObjectsFile)
|
void |
setSizeRowset(int sizeRowset)
|
void |
setSlaveServers(List<SlaveServer> slaveServers)
|
void |
setSlaveStepCopyPartitionDistribution(SlaveStepCopyPartitionDistribution slaveStepCopyPartitionDistribution)
|
void |
setSlaveTransformation(boolean slaveTransformation)
|
void |
setSleepTimeEmpty(int sleepTimeEmpty)
|
void |
setSleepTimeFull(int sleepTimeFull)
|
void |
setStep(int i,
StepMeta stepMeta)
Changes the content of a step on a certain position |
void |
setStepLogTable(StepLogTable stepLogTable)
|
void |
setStepPerformanceCapturingDelay(long stepPerformanceCapturingDelay)
|
void |
setStepPerformanceCapturingSizeLimit(String stepPerformanceCapturingSizeLimit)
|
void |
setTransformationType(TransMeta.TransformationType transformationType)
|
void |
setTransHop(int i,
TransHopMeta hi)
Changes the content of a hop on a certain position |
void |
setTransLogTable(TransLogTable transLogTable)
|
void |
setTransstatus(int n)
Set the status of the transformation. |
void |
setTransversion(String n)
Set the version of the transformation. |
void |
setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
|
void |
setUsingUniqueConnections(boolean usingUniqueConnections)
|
void |
setVariable(String variableName,
String variableValue)
|
void |
shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
|
void |
sortHops()
|
void |
sortHopsNatural()
Sort the hops in a natural way: from beginning to end |
void |
sortSteps()
Put the steps in alphabetical order. |
Map<StepMeta,Map<StepMeta,Boolean>> |
sortStepsNatural()
Put the steps in a more natural order: from start to finish. |
String |
toString()
|
void |
unselectAll()
Clear the selection of all steps. |
TransAction |
viewNextUndo()
Get the next undo transaction on the list. |
TransAction |
viewPreviousUndo()
View previous undo, don't change undo position |
TransAction |
viewThisUndo()
View current undo, don't change undo position |
void |
writeXML(String filename)
Utility method to write the XML of this transformation to a file, mostly for testing purposes. |
Methods inherited from class org.pentaho.di.core.changed.ChangedFlag |
---|
addObserver, deleteObserver, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String XML_TAG
public static final String STRING_TRANSMETA
public static final org.pentaho.di.repository.RepositoryObjectType REPOSITORY_ELEMENT_TYPE
public static final int TYPE_UNDO_CHANGE
public static final int TYPE_UNDO_NEW
public static final int TYPE_UNDO_DELETE
public static final int TYPE_UNDO_POSITION
public static final String[] desc_type_undo
public static final String XML_TAG_NOTEPADS
public static final String XML_TAG_PARAMETERS
public static final String XML_TAG_PARTITIONSCHEMAS
public static final String XML_TAG_SLAVESERVERS
public static final String XML_TAG_CLUSTERSCHEMAS
Constructor Detail |
---|
public TransMeta()
public TransMeta(org.pentaho.di.core.variables.VariableSpace parent)
parent
- the variable space to inherit frompublic TransMeta(String filename, String name, String[] arguments)
filename
- The filename of the transformationname
- The name of the transformationarguments
- The arguments as Stringspublic TransMeta(String fname) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filename
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(String fname, org.pentaho.di.core.variables.VariableSpace parentVariableSpace) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filenameparentVariableSpace
-
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(String fname, boolean setInternalVariables) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filenamesetInternalVariables
- true if you want to set the internal variables based on this transformation information
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(String fname, Repository rep) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filenamerep
- The repository to load the default set of connections from, null if no repository is available
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(String fname, Repository rep, boolean setInternalVariables) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filenamerep
- The repository to load the default set of connections from, null if no repository is availablesetInternalVariables
- true if you want to set the internal variables based on this transformation information
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(String fname, Repository rep, boolean setInternalVariables, org.pentaho.di.core.variables.VariableSpace parentVariableSpace) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filenamerep
- The repository to load the default set of connections from, null if no repository is availablesetInternalVariables
- true if you want to set the internal variables based on this transformation informationparentVariableSpace
- the parent variable space to use during TransMeta construction
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(String fname, Repository rep, boolean setInternalVariables, org.pentaho.di.core.variables.VariableSpace parentVariableSpace, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
fname
- The filenamerep
- The repository to load the default set of connections from, null if no repository is availablesetInternalVariables
- true if you want to set the internal variables based on this transformation informationparentVariableSpace
- the parent variable space to use during TransMeta constructionprompter
- the changed/replace listener or null if there is none
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(InputStream xmlStream, Repository rep, boolean setInternalVariables, org.pentaho.di.core.variables.VariableSpace parentVariableSpace, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLException
public TransMeta(Node transnode, Repository rep) throws org.pentaho.di.core.exception.KettleXMLException
transnode
- The XML node to load fromrep
- the repository to reference.
org.pentaho.di.core.exception.KettleXMLException
Method Detail |
---|
public int compare(TransMeta t1, TransMeta t2)
compare
in interface Comparator<TransMeta>
public int compareTo(TransMeta o)
compareTo
in interface Comparable<TransMeta>
public boolean equals(Object obj)
equals
in interface Comparator<TransMeta>
equals
in class Object
public Object clone()
clone
in class Object
public Object realClone(boolean doClear)
public org.pentaho.di.repository.ObjectId getObjectId()
getObjectId
in interface org.pentaho.di.core.logging.LoggingObjectInterface
getObjectId
in interface org.pentaho.di.repository.RepositoryElementInterface
getObjectId
in interface org.pentaho.di.repository.RepositoryObjectInterface
public void setObjectId(org.pentaho.di.repository.ObjectId id)
setObjectId
in interface EngineMetaInterface
setObjectId
in interface org.pentaho.di.repository.RepositoryElementInterface
id
- the database ID for this object in the repository.public void clear()
public void clearUndo()
public List<org.pentaho.di.core.database.DatabaseMeta> getDatabases()
HasDatabasesInterface
getDatabases
in interface HasDatabasesInterface
public void setDatabases(List<org.pentaho.di.core.database.DatabaseMeta> databases)
setDatabases
in interface HasDatabasesInterface
databases
- The databases to set.public void addDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
HasDatabasesInterface
addDatabase
in interface HasDatabasesInterface
databaseMeta
- The database connection information.public void addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
HasDatabasesInterface
addOrReplaceDatabase
in interface HasDatabasesInterface
databaseMeta
- The database connection information.public void addStep(StepMeta stepMeta)
stepMeta
- The step to be added.public void addOrReplaceStep(StepMeta stepMeta)
stepMeta
- The step to be added.public void addTransHop(TransHopMeta hi)
hi
- The hop to be added.public void addNote(NotePadMeta ni)
ni
- The note to be added.public void addDependency(TransDependency td)
td
- The transformation dependency to be added.public void addDatabase(int p, org.pentaho.di.core.database.DatabaseMeta ci)
HasDatabasesInterface
addDatabase
in interface HasDatabasesInterface
p
- The locationci
- The database connection information.public void addStep(int p, StepMeta stepMeta)
p
- The locationstepMeta
- The step to be added.public void addTransHop(int p, TransHopMeta hi)
p
- the locationhi
- The hop to be added.public void addNote(int p, NotePadMeta ni)
p
- The locationni
- The note to be added.public void addDependency(int p, TransDependency td)
p
- The location.td
- The transformation dependency to be added.public org.pentaho.di.core.database.DatabaseMeta getDatabase(int i)
HasDatabasesInterface
getDatabase
in interface HasDatabasesInterface
i
- The database number.
public List<StepMeta> getSteps()
public StepMeta getStep(int i)
i
- The location.
public TransHopMeta getTransHop(int i)
i
- The location.
public NotePadMeta getNote(int i)
i
- The location
public TransDependency getDependency(int i)
i
- The location.
public void removeDatabase(int i)
HasDatabasesInterface
removeDatabase
in interface HasDatabasesInterface
i
- The locationpublic void removeStep(int i)
i
- The locationpublic void removeTransHop(int i)
i
- The locationpublic void removeNote(int i)
i
- The locationpublic void raiseNote(int p)
public void lowerNote(int p)
public void removeDependency(int i)
i
- The locationpublic void removeAllDependencies()
public int nrDatabases()
HasDatabasesInterface
nrDatabases
in interface HasDatabasesInterface
public int nrSteps()
public int nrTransHops()
public int nrNotes()
public int nrDependencies()
public void setStep(int i, StepMeta stepMeta)
i
- The positionstepMeta
- The Steppublic void setTransHop(int i, TransHopMeta hi)
i
- The positionhi
- The hoppublic List<StepMeta> getUsedSteps()
public org.pentaho.di.core.database.DatabaseMeta findDatabase(String name)
HasDatabasesInterface
findDatabase
in interface HasDatabasesInterface
name
- The name of the database connection
public StepMeta findStep(String name)
name
- The name of the step to look for
public StepMeta findStep(String name, StepMeta exclude)
name
- The name of the step to look forexclude
- The step information to exclude.
public TransHopMeta findTransHop(String name)
name
- The name of the hop to look for
public TransHopMeta findTransHopFrom(StepMeta fromstep)
fromstep
- The step at the start of the hop.
public TransHopMeta findTransHop(TransHopMeta hi)
hi
- The hop information to look for.
public TransHopMeta findTransHop(StepMeta from, StepMeta to)
from
- The step at the start of the hop.to
- The step at the end of the hop.
public TransHopMeta findTransHop(StepMeta from, StepMeta to, boolean disabledToo)
from
- The step at the start of the hop.to
- The step at the end of the hop.
public TransHopMeta findTransHopTo(StepMeta tostep)
tostep
- The step at the end of the hop.
public boolean isStepInformative(StepMeta this_step, StepMeta prev_step)
this_step
- The step that is receiving information.prev_step
- The step that is sending information
public int findNrPrevSteps(String stepname)
stepname
- The name of the step to start from
public int findNrPrevSteps(String stepname, boolean info)
stepname
- The name of the step to start from
public int findNrPrevSteps(StepMeta stepMeta)
stepMeta
- The source step
public StepMeta findPrevStep(String stepname, int nr)
stepname
- The source step namenr
- the location
public StepMeta findPrevStep(String stepname, int nr, boolean info)
stepname
- The name of the stepnr
- The locationinfo
- true if we only want the informational steps.
public StepMeta findPrevStep(StepMeta stepMeta, int nr)
stepMeta
- The source step informationnr
- the location
public int findNrPrevSteps(StepMeta stepMeta, boolean info)
stepMeta
- The name of the stepinfo
- true if we only want the informational steps.
public StepMeta findPrevStep(StepMeta stepMeta, int nr, boolean info)
stepMeta
- The stepnr
- The locationinfo
- true if we only want the informational steps.
public List<StepMeta> findPreviousSteps(StepMeta stepMeta)
stepMeta
- The reference step
public List<StepMeta> findPreviousSteps(StepMeta stepMeta, boolean info)
stepMeta
- The name of the stepinfo
- true if we only want the informational steps.
public StepMeta[] getInfoStep(StepMeta stepMeta)
stepMeta
- The name of the step
public int findNrInfoSteps(StepMeta stepMeta)
stepMeta
- The step
public org.pentaho.di.core.row.RowMetaInterface getPrevInfoFields(String stepname) throws org.pentaho.di.core.exception.KettleStepException
stepname
- The name of the step
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getPrevInfoFields(StepMeta stepMeta) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- The receiving step
org.pentaho.di.core.exception.KettleStepException
public int findNrNextSteps(StepMeta stepMeta)
stepMeta
- The originating step
public StepMeta findNextStep(StepMeta stepMeta, int nr)
stepMeta
- The originating stepnr
- The location
public StepMeta[] getPrevSteps(StepMeta stepMeta)
stepMeta
- The destination step
public String[] getPrevStepNames(String stepname)
stepname
- The originating step name
public String[] getPrevStepNames(StepMeta stepMeta)
stepMeta
- The destination step
public StepMeta[] getNextSteps(StepMeta stepMeta)
stepMeta
- The originating step
public List<StepMeta> findNextSteps(StepMeta stepMeta)
stepMeta
- The originating step
public String[] getNextStepNames(StepMeta stepMeta)
stepMeta
- The originating step
public StepMeta getStep(int x, int y, int iconsize)
x
- the x-coordinate of the point queriedy
- the y-coordinate of the point queried
public NotePadMeta getNote(int x, int y)
x
- the x-coordinate of the point queriedy
- the y-coordinate of the point queried
public boolean partOfTransHop(StepMeta stepMeta)
stepMeta
- The step queried
public org.pentaho.di.core.row.RowMetaInterface getStepFields(String stepname) throws org.pentaho.di.core.exception.KettleStepException
stepname
- The stepname of the step to be queried.
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getStepFields(StepMeta stepMeta) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- The step to be queried.
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getStepFields(StepMeta[] stepMeta) throws org.pentaho.di.core.exception.KettleStepException
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getStepFields(StepMeta stepMeta, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- The step to be queried.monitor
- The progress monitor for progress dialog. (null if not used!)
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getStepFields(StepMeta stepMeta, StepMeta targetStep, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- The step to be queried.targetStep
- the target stepmonitor
- The progress monitor for progress dialog. (null if not used!)
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getPrevStepFields(String stepname) throws org.pentaho.di.core.exception.KettleStepException
stepname
- The name of the step queried
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getPrevStepFields(StepMeta stepMeta) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- The step queried
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getPrevStepFields(StepMeta stepMeta, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- The step queriedmonitor
- The progress monitor for progress dialog. (null if not used!)
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getThisStepFields(String stepname, org.pentaho.di.core.row.RowMetaInterface row) throws org.pentaho.di.core.exception.KettleStepException
stepname
- The name of the step that's being queried.row
- A row containing the input fields or an empty row if no input is required.
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getThisStepFields(StepMeta stepMeta, StepMeta nextStep, org.pentaho.di.core.row.RowMetaInterface row) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- : The StepMeta object that's being queriednextStep
- : if non-null this is the next step that's call back to ask what's being sentrow
- : A row containing the input fields or an empty row if no input is required.
org.pentaho.di.core.exception.KettleStepException
public org.pentaho.di.core.row.RowMetaInterface getThisStepFields(StepMeta stepMeta, StepMeta nextStep, org.pentaho.di.core.row.RowMetaInterface row, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleStepException
stepMeta
- : The StepMeta object that's being queriednextStep
- : if non-null this is the next step that's call back to ask what's being sentrow
- : A row containing the input fields or an empty row if no input is required.
org.pentaho.di.core.exception.KettleStepException
public boolean isUsingPartitionSchema(PartitionSchema partitionSchema)
public boolean isUsingAClusterSchema()
public boolean isUsingClusterSchema(ClusterSchema clusterSchema)
clusterSchema
- the cluster schema to check
public boolean isUsingSlaveServer(SlaveServer slaveServer) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public boolean isRepReference()
public boolean isFileReference()
public static boolean isRepReference(String exactFilename, String exactTransname)
public static boolean isFileReference(String exactFilename, String exactTransname)
public int indexOfTransHop(TransHopMeta hi)
hi
- The hop queried
public int indexOfStep(StepMeta stepMeta)
stepMeta
- The step queried
public int indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta ci)
HasDatabasesInterface
indexOfDatabase
in interface HasDatabasesInterface
ci
- The database queried
public int indexOfNote(NotePadMeta ni)
ni
- The note queried
public String getFileType()
getFileType
in interface EngineMetaInterface
public String[] getFilterNames()
getFilterNames
in interface EngineMetaInterface
public String[] getFilterExtensions()
getFilterExtensions
in interface EngineMetaInterface
public String getDefaultExtension()
getDefaultExtension
in interface EngineMetaInterface
public String getXML() throws org.pentaho.di.core.exception.KettleException
getXML
in interface EngineMetaInterface
getXML
in interface org.pentaho.di.core.xml.XMLInterface
org.pentaho.di.core.exception.KettleException
public String getXML(boolean includeSteps, boolean includeDatabase, boolean includeSlaves, boolean includeClusters, boolean includePartitions) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void loadXML(Node transnode, Repository rep, boolean setInternalVariables) throws org.pentaho.di.core.exception.KettleXMLException
transnode
- The XML node to load fromrep
- The repository to load the default list of database connections from (null if no repository is available)setInternalVariables
- true if you want to set the internal variables based on this transformation information
org.pentaho.di.core.exception.KettleXMLException
public void loadXML(Node transnode, Repository rep, boolean setInternalVariables, org.pentaho.di.core.variables.VariableSpace parentVariableSpace) throws org.pentaho.di.core.exception.KettleXMLException
transnode
- The XML node to load fromrep
- The repository to load the default list of database connections from (null if no repository is available)setInternalVariables
- true if you want to set the internal variables based on this transformation informationparentVariableSpace
- the parent variable space to use during TransMeta construction
org.pentaho.di.core.exception.KettleXMLException
public void loadXML(Node transnode, Repository rep, boolean setInternalVariables, org.pentaho.di.core.variables.VariableSpace parentVariableSpace, org.pentaho.di.core.gui.OverwritePrompter prompter) throws org.pentaho.di.core.exception.KettleXMLException
transnode
- The XML node to load fromrep
- The repository to load the default list of database connections from (null if no repository is available)setInternalVariables
- true if you want to set the internal variables based on this transformation informationparentVariableSpace
- the parent variable space to use during TransMeta constructionprompter
- the changed/replace listener or null if there is none
org.pentaho.di.core.exception.KettleXMLException
public SharedObjects readSharedObjects() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public List<StepMeta> getTransHopSteps(boolean all)
all
- Set to true if you want to get ALL the steps from the transformation.
public String getName()
getName
in interface EngineMetaInterface
getName
in interface org.pentaho.di.repository.RepositoryElementInterface
getName
in interface org.pentaho.di.repository.RepositoryObjectInterface
public void setName(String newName)
setName
in interface org.pentaho.di.repository.RepositoryElementInterface
newName
- The new name of the transformationpublic void nameFromFilename()
nameFromFilename
in interface EngineMetaInterface
public String getFilename()
getFilename
in interface EngineMetaInterface
getFilename
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public void setFilename(String fname)
setFilename
in interface EngineMetaInterface
fname
- The new filename of the transformation.public boolean isStepUsedInTransHops(StepMeta stepMeta)
stepMeta
- The step queried.
public void setChanged(boolean ch)
setChanged
in interface ChangedFlagInterface
setChanged
in class ChangedFlag
ch
- True if you want to mark the transformation as changed, false if not.public void clearChanged()
clearChanged
in interface ChangedFlagInterface
clearChanged
in interface EngineMetaInterface
clearChanged
in class ChangedFlag
public void clearChangedDatabases()
public boolean haveConnectionsChanged()
HasDatabasesInterface
haveConnectionsChanged
in interface HasDatabasesInterface
public boolean haveStepsChanged()
public boolean haveHopsChanged()
public boolean haveNotesChanged()
public boolean havePartitionSchemasChanged()
public boolean haveClusterSchemasChanged()
public boolean hasChanged()
hasChanged
in interface ChangedFlagInterface
hasChanged
in class ChangedFlag
public boolean hasLoop(StepMeta stepMeta)
stepMeta
- The step position to start looking
public void selectAll()
public void unselectAll()
public org.pentaho.di.core.gui.Point[] getSelectedStepLocations()
public org.pentaho.di.core.gui.Point[] getSelectedNoteLocations()
public List<StepMeta> getSelectedSteps()
public List<NotePadMeta> getSelectedNotes()
public String[] getSelectedStepNames()
public int[] getStepIndexes(List<StepMeta> steps)
steps
- An array of steps
public int[] getNoteIndexes(List<NotePadMeta> notes)
notes
- An array of notes
public int getMaxUndo()
getMaxUndo
in interface UndoInterface
public void setMaxUndo(int mu)
setMaxUndo
in interface UndoInterface
mu
- The maximum number of undo operations that are allowed.public void addUndo(Object[] from, Object[] to, int[] pos, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr, int type_of_change, boolean nextAlso)
addUndo
in interface UndoInterface
from
- array of objects representing the old stateto
- array of objectes representing the new statepos
- An array of object locationsprev
- An array of points representing the old positionscurr
- An array of points representing the new positionstype_of_change
- The type of change that's being done to the transformation.nextAlso
- indicates that the next undo operation needs to follow this one.public TransAction previousUndo()
previousUndo
in interface UndoInterface
public TransAction viewThisUndo()
viewThisUndo
in interface UndoInterface
public TransAction viewPreviousUndo()
viewPreviousUndo
in interface UndoInterface
public TransAction nextUndo()
nextUndo
in interface UndoInterface
public TransAction viewNextUndo()
viewNextUndo
in interface UndoInterface
public org.pentaho.di.core.gui.Point getMaximum()
public org.pentaho.di.core.gui.Point getMinimum()
public String[] getStepNames()
public StepMeta[] getStepsArray()
public boolean findPrevious(StepMeta startStep, StepMeta stepToFind)
startStep
- The starting stepstepToFind
- The step to look for backward in the transformation
public void sortSteps()
public void sortHops()
public Map<StepMeta,Map<StepMeta,Boolean>> sortStepsNatural()
public void sortHopsNatural()
public void analyseImpact(List<DatabaseImpact> impact, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleStepException
impact
- An ArrayList of DatabaseImpact objects.
org.pentaho.di.core.exception.KettleStepException
public String getAlternativeStepname(String stepname)
stepname
- The stepname to find an alternative for..
public List<org.pentaho.di.core.SQLStatement> getSQLStatements() throws org.pentaho.di.core.exception.KettleStepException
org.pentaho.di.core.exception.KettleStepException
public List<org.pentaho.di.core.SQLStatement> getSQLStatements(org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleStepException
org.pentaho.di.core.exception.KettleStepException
public String getSQLStatementsString() throws org.pentaho.di.core.exception.KettleStepException
org.pentaho.di.core.exception.KettleStepException
public void checkSteps(List<org.pentaho.di.core.CheckResultInterface> remarks, boolean only_selected, org.pentaho.di.core.ProgressMonitorListener monitor)
remarks
- The remarks list to add to.only_selected
- Check only the selected steps.monitor
- The progress monitor to use, null if not usedpublic List<org.pentaho.di.core.RowMetaAndData> getResultRows()
public void setResultRows(List<org.pentaho.di.core.RowMetaAndData> resultRows)
resultRows
- The resultRows to set.public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory
in interface EngineMetaInterface
getRepositoryDirectory
in interface org.pentaho.di.core.logging.LoggingObjectInterface
getRepositoryDirectory
in interface org.pentaho.di.repository.RepositoryElementInterface
public void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface directory)
setRepositoryDirectory
in interface org.pentaho.di.repository.RepositoryElementInterface
directory
- The directory to set.public String getPathAndName()
public String[] getArguments()
public void setArguments(String[] arguments)
arguments
- The arguments to set.public Hashtable<String,org.pentaho.di.core.Counter> getCounters()
public void setCounters(Hashtable<String,org.pentaho.di.core.Counter> counters)
counters
- The counters to set.public List<TransDependency> getDependencies()
public void setDependencies(List<TransDependency> dependencies)
dependencies
- The dependencies to set.public org.pentaho.di.core.database.DatabaseMeta getMaxDateConnection()
public void setMaxDateConnection(org.pentaho.di.core.database.DatabaseMeta maxDateConnection)
maxDateConnection
- The maxDateConnection to set.public double getMaxDateDifference()
public void setMaxDateDifference(double maxDateDifference)
maxDateDifference
- The maxDateDifference to set.public String getMaxDateField()
public void setMaxDateField(String maxDateField)
maxDateField
- The maxDateField to set.public double getMaxDateOffset()
public void setMaxDateOffset(double maxDateOffset)
maxDateOffset
- The maxDateOffset to set.public String getMaxDateTable()
public void setMaxDateTable(String maxDateTable)
maxDateTable
- The maxDateTable to set.public int getSizeRowset()
public void setSizeRowset(int sizeRowset)
sizeRowset
- The sizeRowset to set.public org.pentaho.di.core.DBCache getDbCache()
public void setDbCache(org.pentaho.di.core.DBCache dbCache)
dbCache
- The dbCache to set.public Date getCreatedDate()
getCreatedDate
in interface EngineMetaInterface
public void setCreatedDate(Date createdDate)
setCreatedDate
in interface EngineMetaInterface
createdDate
- The createdDate to set.public void setCreatedUser(String createdUser)
setCreatedUser
in interface EngineMetaInterface
createdUser
- The createdUser to set.public String getCreatedUser()
getCreatedUser
in interface EngineMetaInterface
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface EngineMetaInterface
modifiedDate
- The modifiedDate to set.public Date getModifiedDate()
getModifiedDate
in interface EngineMetaInterface
public void setModifiedUser(String modifiedUser)
setModifiedUser
in interface EngineMetaInterface
modifiedUser
- The modifiedUser to set.public String getModifiedUser()
getModifiedUser
in interface EngineMetaInterface
public String getDescription()
getDescription
in interface org.pentaho.di.repository.RepositoryElementInterface
public void setDescription(String n)
setDescription
in interface org.pentaho.di.repository.RepositoryElementInterface
n
- The new description of the transformationpublic void setExtendedDescription(String n)
n
- The new extended description of the transformationpublic String getExtendedDescription()
public String getTransversion()
public void setTransversion(String n)
n
- The new version description of the transformationpublic void setTransstatus(int n)
n
- The new status description of the transformationpublic int getTransstatus()
public String toString()
toString
in class Object
public void cancelQueries() throws org.pentaho.di.core.exception.KettleDatabaseException
org.pentaho.di.core.exception.KettleDatabaseException
public Map<String,String> getUsedArguments(String[] arguments)
arguments
-
public int getSleepTimeEmpty()
public int getSleepTimeFull()
public void setSleepTimeEmpty(int sleepTimeEmpty)
sleepTimeEmpty
- The sleepTimeEmpty to set.public void setSleepTimeFull(int sleepTimeFull)
sleepTimeFull
- The sleepTimeFull to set.public boolean isDatabaseConnectionUsed(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
databaseMeta
- The connection to check
public List<StringSearchResult> getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes, boolean includePasswords)
public List<StringSearchResult> getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes)
public List<String> getUsedVariables()
public org.pentaho.di.core.Result getPreviousResult()
public void setPreviousResult(org.pentaho.di.core.Result previousResult)
previousResult
- The previousResult to set.public List<org.pentaho.di.core.ResultFile> getResultFiles()
public void setResultFiles(List<org.pentaho.di.core.ResultFile> resultFiles)
resultFiles
- The resultFiles to set.public List<PartitionSchema> getPartitionSchemas()
public void setPartitionSchemas(List<PartitionSchema> partitionSchemas)
partitionSchemas
- the partitionSchemas to setpublic String[] getPartitionSchemasNames()
public boolean isFeedbackShown()
public void setFeedbackShown(boolean feedbackShown)
feedbackShown
- the feedbackShown to setpublic int getFeedbackSize()
public void setFeedbackSize(int feedbackSize)
feedbackSize
- the feedbackSize to setpublic boolean isUsingUniqueConnections()
public void setUsingUniqueConnections(boolean usingUniqueConnections)
usingUniqueConnections
- the usingUniqueConnections to setpublic List<ClusterSchema> getClusterSchemas()
public void setClusterSchemas(List<ClusterSchema> clusterSchemas)
public String[] getClusterSchemaNames()
public PartitionSchema findPartitionSchema(String name)
name
- The name of the partition schema to look for.
public ClusterSchema findClusterSchema(String name)
name
- The name of the clustering schema to look for.
public void addOrReplacePartitionSchema(PartitionSchema partitionSchema)
partitionSchema
- The partition schema to be added.public void addOrReplaceSlaveServer(SlaveServer slaveServer)
slaveServer
- The slave server to be added.public void addOrReplaceClusterSchema(ClusterSchema clusterSchema)
clusterSchema
- The cluster schema to be added.public String getSharedObjectsFile()
public void setSharedObjectsFile(String sharedObjectsFile)
public void saveSharedObjects() throws org.pentaho.di.core.exception.KettleException
saveSharedObjects
in interface EngineMetaInterface
org.pentaho.di.core.exception.KettleException
public boolean isUsingThreadPriorityManagment()
public void setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
usingThreadPriorityManagment
- the usingThreadPriorityManagment to setpublic SlaveServer findSlaveServer(String serverString)
public String[] getSlaveServerNames()
public List<SlaveServer> getSlaveServers()
getSlaveServers
in interface HasSlaveServersInterface
public void setSlaveServers(List<SlaveServer> slaveServers)
slaveServers
- the slaveServers to setpublic void checkRowMixingStatically(StepMeta stepMeta, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleRowException
stepMeta
- the step to check
org.pentaho.di.core.exception.KettleRowException
- in case we detect a row mixing violationpublic void setInternalKettleVariables()
setInternalKettleVariables
in interface EngineMetaInterface
public void setInternalKettleVariables(org.pentaho.di.core.variables.VariableSpace var)
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom
in interface org.pentaho.di.core.variables.VariableSpace
public String environmentSubstitute(String aString)
environmentSubstitute
in interface org.pentaho.di.core.variables.VariableSpace
public String[] environmentSubstitute(String[] aString)
environmentSubstitute
in interface org.pentaho.di.core.variables.VariableSpace
public org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace
in interface org.pentaho.di.core.variables.VariableSpace
public void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace
in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName, String defaultValue)
getVariable
in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName)
getVariable
in interface org.pentaho.di.core.variables.VariableSpace
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable
in interface org.pentaho.di.core.variables.VariableSpace
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom
in interface org.pentaho.di.core.variables.VariableSpace
public String[] listVariables()
listVariables
in interface org.pentaho.di.core.variables.VariableSpace
public void setVariable(String variableName, String variableValue)
setVariable
in interface org.pentaho.di.core.variables.VariableSpace
public void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith
in interface org.pentaho.di.core.variables.VariableSpace
public void injectVariables(Map<String,String> prop)
injectVariables
in interface org.pentaho.di.core.variables.VariableSpace
public StepMeta findMappingInputStep(String stepname) throws org.pentaho.di.core.exception.KettleStepException
org.pentaho.di.core.exception.KettleStepException
public StepMeta findMappingOutputStep(String stepname) throws org.pentaho.di.core.exception.KettleStepException
org.pentaho.di.core.exception.KettleStepException
public List<ResourceReference> getResourceDependencies()
public String exportResources(org.pentaho.di.core.variables.VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface resourceNamingInterface, Repository repository) throws org.pentaho.di.core.exception.KettleException
ResourceExportInterface
exportResources
in interface ResourceExportInterface
space
- The variable space to resolve (environment) variables with.definitions
- The map containing the filenames and contentresourceNamingInterface
- The resource naming interface allows the object to name appropriatelyrepository
- the repository object to load from
org.pentaho.di.core.exception.KettleException
- in case something goes wrong during the exportpublic SlaveStepCopyPartitionDistribution getSlaveStepCopyPartitionDistribution()
public void setSlaveStepCopyPartitionDistribution(SlaveStepCopyPartitionDistribution slaveStepCopyPartitionDistribution)
slaveStepCopyPartitionDistribution
- the slaveStepCopyPartitionDistribution to setpublic ClusterSchema findFirstUsedClusterSchema()
public boolean isSlaveTransformation()
public void setSlaveTransformation(boolean slaveTransformation)
public Repository getRepository()
public void setRepository(Repository repository)
repository
- the repository to setpublic boolean isCapturingStepPerformanceSnapShots()
public void setCapturingStepPerformanceSnapShots(boolean capturingStepPerformanceSnapShots)
capturingStepPerformanceSnapShots
- the capturingStepPerformanceSnapShots to setpublic long getStepPerformanceCapturingDelay()
public void setStepPerformanceCapturingDelay(long stepPerformanceCapturingDelay)
stepPerformanceCapturingDelay
- the stepPerformanceCapturingDelay to setpublic String getStepPerformanceCapturingSizeLimit()
public void setStepPerformanceCapturingSizeLimit(String stepPerformanceCapturingSizeLimit)
stepPerformanceCapturingSizeLimit
- the stepPerformanceCapturingSizeLimit to setpublic SharedObjects getSharedObjects()
public void setSharedObjects(SharedObjects sharedObjects)
sharedObjects
- the sharedObjects to setpublic void clearCaches()
public void addNameChangedListener(NameChangedListener listener)
public void removeNameChangedListener(NameChangedListener listener)
public void addFilenameChangedListener(FilenameChangedListener listener)
public void removeFilenameChangedListener(FilenameChangedListener listener)
public void activateParameters()
activateParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void addParameterDefinition(String key, String defaultValue, String description) throws org.pentaho.di.core.parameters.DuplicateParamException
addParameterDefinition
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.DuplicateParamException
public String getParameterDescription(String key) throws org.pentaho.di.core.parameters.UnknownParamException
getParameterDescription
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public String getParameterDefault(String key) throws org.pentaho.di.core.parameters.UnknownParamException
getParameterDefault
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public String getParameterValue(String key) throws org.pentaho.di.core.parameters.UnknownParamException
getParameterValue
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public String[] listParameters()
listParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void setParameterValue(String key, String value) throws org.pentaho.di.core.parameters.UnknownParamException
setParameterValue
in interface org.pentaho.di.core.parameters.NamedParams
org.pentaho.di.core.parameters.UnknownParamException
public void eraseParameters()
eraseParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void clearParameters()
clearParameters
in interface org.pentaho.di.core.parameters.NamedParams
public void copyParametersFrom(org.pentaho.di.core.parameters.NamedParams params)
copyParametersFrom
in interface org.pentaho.di.core.parameters.NamedParams
public org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()
getRepositoryElementType
in interface org.pentaho.di.repository.RepositoryElementInterface
public void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
setObjectRevision
in interface org.pentaho.di.repository.RepositoryElementInterface
public org.pentaho.di.repository.ObjectRevision getObjectRevision()
getObjectRevision
in interface org.pentaho.di.core.logging.LoggingObjectInterface
getObjectRevision
in interface org.pentaho.di.repository.RepositoryElementInterface
public org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
public String getLogChannelId()
getLogChannelId
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public String getObjectName()
getObjectName
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public String getObjectCopy()
getObjectCopy
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.core.logging.LoggingObjectType getObjectType()
getObjectType
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.core.logging.LoggingObjectInterface getParent()
getParent
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public org.pentaho.di.core.logging.LogLevel getLogLevel()
getLogLevel
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public void setLogLevel(org.pentaho.di.core.logging.LogLevel logLevel)
public TransLogTable getTransLogTable()
public void setTransLogTable(TransLogTable transLogTable)
transLogTable
- the transLogTable to setpublic String[] getDatabaseNames()
public PerformanceLogTable getPerformanceLogTable()
public void setPerformanceLogTable(PerformanceLogTable performanceLogTable)
performanceLogTable
- the performanceLogTable to setpublic ChannelLogTable getChannelLogTable()
public void setChannelLogTable(ChannelLogTable channelLogTable)
channelLogTable
- the channelLogTable to setpublic StepLogTable getStepLogTable()
public void setStepLogTable(StepLogTable stepLogTable)
stepLogTable
- the stepLogTable to setpublic List<org.pentaho.di.core.logging.LogTableInterface> getLogTables()
public TransMeta.TransformationType getTransformationType()
public void setTransformationType(TransMeta.TransformationType transformationType)
transformationType
- the transformationType to setpublic boolean canSave()
canSave
in interface EngineMetaInterface
public String getContainerObjectId()
getContainerObjectId
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public void setCarteObjectId(String containerObjectId)
containerObjectId
- the containerObjectId to setpublic void writeXML(String filename) throws org.pentaho.di.core.exception.KettleXMLException
filename
- The filename to save to
org.pentaho.di.core.exception.KettleXMLException
- in case something goes wrong.public Date getRegistrationDate()
getRegistrationDate
in interface org.pentaho.di.core.logging.LoggingObjectInterface
public boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository) throws org.pentaho.di.core.exception.KettleException
repository
- the repository to reference.
org.pentaho.di.core.exception.KettleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |