|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.changed.ChangedFlag org.pentaho.di.trans.TransMeta
public class TransMeta
This class defines information about a transformation and offers methods to save and load it from XML or a PDI database repository, as well as methods to alter a transformation by adding/removing databases, steps, hops, etc.
Nested Class Summary | |
---|---|
static class |
TransMeta.TransformationType
The TransformationType enum describes the various types of transformations in terms of execution, including Normal, Serial Single-Threaded, and Single-Threaded. |
Field Summary | |
---|---|
static String[] |
desc_type_undo
A list of localized strings corresponding to string descriptions of the undo/redo actions. |
static RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE
A constant specifying the repository element type as a Transformation. |
static String |
STRING_TRANSMETA
A constant used by the logging operations to indicate any logged messages are related to transformation meta-data. |
static int |
TYPE_UNDO_CHANGE
A constant indicating a Change action, used in "undo/redo" operations. |
static int |
TYPE_UNDO_DELETE
A constant indicating a Delete action, used in "undo/redo" operations. |
static int |
TYPE_UNDO_NEW
A constant indicating a New action, used in "undo/redo" operations. |
static int |
TYPE_UNDO_POSITION
A constant indicating a Position Change action, used in "undo/redo" operations. |
static String |
XML_TAG
A constant specifying the tag value for the XML node of the transformation. |
static String |
XML_TAG_CLUSTERSCHEMAS
A constant specifying the tag value for the XML node of the cluster schemas. |
static String |
XML_TAG_NOTEPADS
A constant specifying the tag value for the XML node of the notes. |
static String |
XML_TAG_PARAMETERS
A constant specifying the tag value for the XML node of the transformation parameters. |
static String |
XML_TAG_PARTITIONSCHEMAS
A constant specifying the tag value for the XML node of the transformation's partition schemas. |
static String |
XML_TAG_SLAVESERVERS
A constant specifying the tag value for the XML node of the slave servers. |
Constructor Summary | |
---|---|
TransMeta()
Builds a new empty transformation. |
|
TransMeta(InputStream xmlStream,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace,
OverwritePrompter prompter)
Instantiates a new transformation meta-data object. |
|
TransMeta(Node transnode,
Repository rep)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname)
Parses a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
boolean setInternalVariables)
Parses a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep)
Parses a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables)
Parses a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace)
Parses a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace,
OverwritePrompter prompter)
Parses 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,
VariableSpace parentVariableSpace)
Parses a file containing the XML that describes the transformation. |
|
TransMeta(VariableSpace parent)
Builds a new empty transformation with a set of variables to inherit from. |
Method Summary | |
---|---|
void |
activateParameters()
Activates the parameters. |
void |
addDatabase(DatabaseMeta databaseMeta)
Adds the specified database (via database meta-data) to the list of associated databases for the transformation. |
void |
addDatabase(int p,
DatabaseMeta ci)
Adds a database association to the transformation at the given index |
void |
addDependency(int p,
TransDependency td)
Add a new dependency to the transformation on a certain location (i.e. |
void |
addDependency(TransDependency td)
Add a new dependency to the transformation. |
void |
addFilenameChangedListener(FilenameChangedListener listener)
Adds a listener for "filename changed" events. |
void |
addNameChangedListener(NameChangedListener listener)
Adds a listener for "name changed" events. |
void |
addNote(int p,
NotePadMeta ni)
Add a new note to the transformation on a certain location (i.e. |
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(DatabaseMeta databaseMeta)
Adds the specified database (via database meta-data) to the list of associated databases for the transformation, or replaces the database if it already exists in the list |
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)
Adds the parameter definition. |
void |
addStep(int p,
StepMeta stepMeta)
Add a new step to the transformation at the specified index. |
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 (i.e. |
void |
addTransHop(TransHopMeta hi)
Add a new hop to the transformation. |
void |
addUndo(Object[] from,
Object[] to,
int[] pos,
Point[] prev,
Point[] curr,
int type_of_change,
boolean nextAlso)
Adds an undo operation to the undo list. |
void |
analyseImpact(List<DatabaseImpact> impact,
ProgressMonitorListener monitor)
Determines the impact of the different steps in a transformation on databases, tables and field. |
void |
cancelQueries()
Cancels queries opened for checking & fieldprediction. |
boolean |
canSave()
Checks whether the transformation can be saved. |
void |
checkRowMixingStatically(StepMeta stepMeta,
ProgressMonitorListener monitor)
Check a step to see if there are no multiple steps to read from. |
void |
checkSteps(List<CheckResultInterface> remarks,
boolean only_selected,
ProgressMonitorListener monitor)
Checks all the steps and fills a List of (CheckResult) remarks. |
void |
clear()
Clears the transformation's meta-data, including the lists of databases, steps, hops, notes, dependencies, partition schemas, slave servers, and cluster schemas. |
void |
clearCaches()
Clears the step fields and loop caches. |
void |
clearChanged()
Clears the different changed flags of the transformation. |
void |
clearChangedDatabases()
Clears the flags for whether the transformation's databases have changed. |
void |
clearParameters()
Clears the parameters' values. |
void |
clearUndo()
Clears the list of undo actions. |
Object |
clone()
Clones the transformation meta-data object. |
int |
compare(TransMeta t1,
TransMeta t2)
Compares two transformation on name, filename, repository directory, etc. |
int |
compareTo(TransMeta o)
Compares this transformation's meta-data to the specified transformation's meta-data. |
void |
copyParametersFrom(NamedParams params)
Copy parameters from the specified parameters. |
void |
copyVariablesFrom(VariableSpace space)
Copies variables from the specified variable space into this transformation's variable space. |
String |
environmentSubstitute(String aString)
Resolves the given string against environment variables by performing substitution. |
String[] |
environmentSubstitute(String[] aString)
Resolves the given strings against environment variables by performing substitution. |
boolean |
equals(Object obj)
Checks whether this transformation's meta-data object is equal to the specified object. |
void |
eraseParameters()
Erases all parameters (both name and value) |
String |
exportResources(VariableSpace space,
Map<String,ResourceDefinition> definitions,
ResourceNamingInterface resourceNamingInterface,
Repository repository)
Exports the specified objects 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. |
DatabaseMeta |
findDatabase(String name)
Find a database (associated with the transformation) by name |
ClusterSchema |
findFirstUsedClusterSchema()
Finds the first used cluster schema. |
StepMeta |
findMappingInputStep(String stepname)
Finds the mapping input step with the specified name. |
StepMeta |
findMappingOutputStep(String stepname)
Finds the mapping output step with the specified name. |
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 certain 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)
Looks in the transformation to 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 (i.e. |
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)
Find a slave server with the given name. |
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()
Gets the arguments used for this transformation. |
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue)
Returns a boolean representation of the specified variable after performing any necessary substitution. |
ChannelLogTable |
getChannelLogTable()
Gets the channel log table for the transformation. |
String[] |
getClusterSchemaNames()
Gets the cluster schema names. |
List<ClusterSchema> |
getClusterSchemas()
Gets a list of the cluster schemas used by the transformation. |
String |
getContainerObjectId()
Gets the container object ID. |
Hashtable<String,Counter> |
getCounters()
Gets the counters (database sequence values, e.g.) for the transformation. |
Date |
getCreatedDate()
Gets the date the transformation was created. |
String |
getCreatedUser()
Gets the user by whom the transformation was created. |
DatabaseMeta |
getDatabase(int i)
Gets the database at the specified index. |
String[] |
getDatabaseNames()
Gets the database names. |
List<DatabaseMeta> |
getDatabases()
Gets the list of databases associated with the transformation. |
DBCache |
getDbCache()
Gets the database cache object. |
String |
getDefaultExtension()
Gets the default extension for a transformation. |
List<TransDependency> |
getDependencies()
Gets a list of dependencies for the transformation |
TransDependency |
getDependency(int i)
Retrieves a dependency on a certain location (i.e. |
String |
getDescription()
Gets the description of the transformation. |
String |
getExtendedDescription()
Gets the extended description of the transformation. |
int |
getFeedbackSize()
Gets the feedback size. |
String |
getFilename()
Get the filename (if any) of the transformation. |
String |
getFileType()
Gets the file type. |
String[] |
getFilterExtensions()
Gets the transformation filter extensions. |
String[] |
getFilterNames()
Gets the transformation filter names. |
StepMeta[] |
getInfoStep(StepMeta stepMeta)
Get the informational steps for a certain step. |
LogChannelInterface |
getLogChannel()
Gets the log channel. |
String |
getLogChannelId()
Gets the log channel ID. |
LogLevel |
getLogLevel()
Gets the log level for the transformation. |
List<LogTableInterface> |
getLogTables()
Gets a list of the log tables (transformation, step, performance, channel) for the transformation. |
DatabaseMeta |
getMaxDateConnection()
Gets the database connection associated with "max date" processing. |
double |
getMaxDateDifference()
Gets the maximum date difference between start and end dates for row/record processing. |
String |
getMaxDateField()
Gets the date field associated with "max date" processing. |
double |
getMaxDateOffset()
Gets the amount by which to increase the "max date" difference. |
String |
getMaxDateTable()
Gets the database table providing a date to be used in "max date" processing. |
Point |
getMaximum()
Gets the maximum size of the canvas by calculating the maximum location of a step. |
int |
getMaxUndo()
Gets the maximum number of undo operations possible. |
Point |
getMinimum()
Gets the minimum point on the canvas of a transformation. |
Date |
getModifiedDate()
Gets the date the transformation was modified. |
String |
getModifiedUser()
Gets the user who last modified the transformation. |
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 (i.e. |
NotePadMeta |
getNote(int x,
int y)
Find the note that is located on a certain point on the canvas. |
int[] |
getNoteIndexes(List<NotePadMeta> notes)
Gets an array of the locations of an array of notes. |
String |
getObjectCopy()
Gets the object copy. |
ObjectId |
getObjectId()
Get the database ID in the repository for this object. |
String |
getObjectName()
Gets the object name. |
ObjectRevision |
getObjectRevision()
Gets the object revision. |
LoggingObjectType |
getObjectType()
Gets the object type. |
String |
getParameterDefault(String key)
Gets the parameter default. |
String |
getParameterDescription(String key)
Gets the parameter description. |
String |
getParameterValue(String key)
Gets the parameter value. |
LoggingObjectInterface |
getParent()
Gets the interface to the parent log object. |
VariableSpace |
getParentVariableSpace()
Gets the parent variable space. |
List<PartitionSchema> |
getPartitionSchemas()
Gets a list of partition schemas for this transformation. |
String[] |
getPartitionSchemasNames()
Gets the partition schemas' names. |
String |
getPathAndName()
Gets the repository directory path and name of the transformation. |
PerformanceLogTable |
getPerformanceLogTable()
Gets the performance log table for the transformation. |
RowMetaInterface |
getPrevInfoFields(StepMeta stepMeta)
Find the informational fields coming from an informational step into the step specified. |
RowMetaInterface |
getPrevInfoFields(String stepname)
Find the informational fields coming from an informational step into the step specified. |
Result |
getPreviousResult()
Gets the previous result. |
RowMetaInterface |
getPrevStepFields(StepMeta stepMeta)
Find the fields that are entering a certain step. |
RowMetaInterface |
getPrevStepFields(StepMeta stepMeta,
ProgressMonitorListener monitor)
Find the fields that are entering a certain step. |
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()
Gets the registration date for the transformation. |
Repository |
getRepository()
Gets the repository. |
RepositoryDirectoryInterface |
getRepositoryDirectory()
Gets the repository directory. |
RepositoryObjectType |
getRepositoryElementType()
Gets the repository element type. |
List<ResourceReference> |
getResourceDependencies()
Gets a list of the resource dependencies. |
List<ResultFile> |
getResultFiles()
Gets a list of the files in the result. |
List<RowMetaAndData> |
getResultRows()
Gets the result rows. |
Point[] |
getSelectedNoteLocations()
Get an array of all the selected note locations. |
List<NotePadMeta> |
getSelectedNotes()
Gets an array of all the selected notes. |
Point[] |
getSelectedStepLocations()
Get an array of all the selected step locations. |
String[] |
getSelectedStepNames()
Gets an array of all the selected step names. |
List<StepMeta> |
getSelectedSteps()
Gets a list of the selected steps. |
SharedObjects |
getSharedObjects()
Gets the shared objects. |
String |
getSharedObjectsFile()
Gets the shared objects file. |
int |
getSizeRowset()
Gets the size of the rowsets. |
String[] |
getSlaveServerNames()
Gets the slave server names. |
List<SlaveServer> |
getSlaveServers()
Gets a list of the slave servers. |
SlaveStepCopyPartitionDistribution |
getSlaveStepCopyPartitionDistribution()
Gets the slave step copy partition distribution. |
int |
getSleepTimeEmpty()
Gets the amount of time (in nano-seconds) to wait while the input buffer is empty. |
int |
getSleepTimeFull()
Gets the amount of time (in nano-seconds) to wait while the input buffer is full. |
List<SQLStatement> |
getSQLStatements()
Builds a list of all the SQL statements that this transformation needs in order to work properly. |
List<SQLStatement> |
getSQLStatements(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 a single String. |
StepMeta |
getStep(int i)
Retrieves a step on a certain location (i.e. |
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. |
RowMetaInterface |
getStepFields(StepMeta stepMeta)
Returns the fields that are emitted by a certain step. |
RowMetaInterface |
getStepFields(StepMeta[] stepMeta)
Gets the fields for each of the specified steps and merges them into a single set |
RowMetaInterface |
getStepFields(StepMeta stepMeta,
ProgressMonitorListener monitor)
Returns the fields that are emitted by a certain step. |
RowMetaInterface |
getStepFields(StepMeta stepMeta,
StepMeta targetStep,
ProgressMonitorListener monitor)
Returns the fields that are emitted by a certain step. |
RowMetaInterface |
getStepFields(String stepname)
Returns the fields that are emitted by a certain step name. |
int[] |
getStepIndexes(List<StepMeta> steps)
Gets an array of the locations of an array of steps. |
StepLogTable |
getStepLogTable()
Gets the step log table for the transformation. |
String[] |
getStepNames()
Gets the names of all the steps. |
long |
getStepPerformanceCapturingDelay()
Gets the step performance capturing delay. |
String |
getStepPerformanceCapturingSizeLimit()
Gets the step performance capturing size limit. |
List<StepMeta> |
getSteps()
Get a list of defined steps in this transformation. |
StepMeta[] |
getStepsArray()
Gets all the steps as an array. |
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes)
Get a list of all the strings used in this transformation. |
List<StringSearchResult> |
getStringList(boolean searchSteps,
boolean searchDatabases,
boolean searchNotes,
boolean includePasswords)
Gets a list of all the strings used in this transformation. |
RowMetaInterface |
getThisStepFields(StepMeta stepMeta,
StepMeta nextStep,
RowMetaInterface row)
Returns the fields that are emitted by a step. |
RowMetaInterface |
getThisStepFields(StepMeta stepMeta,
StepMeta nextStep,
RowMetaInterface row,
ProgressMonitorListener monitor)
Returns the fields that are emitted by a step. |
RowMetaInterface |
getThisStepFields(String stepname,
RowMetaInterface row)
Return the fields that are emitted by a step with a certain name. |
TransMeta.TransformationType |
getTransformationType()
Gets the transformation type. |
TransHopMeta |
getTransHop(int i)
Retrieves a hop on a certain location (i.e. |
List<StepMeta> |
getTransHopSteps(boolean all)
Gets a List of all the steps that are used in at least one active hop. |
TransLogTable |
getTransLogTable()
Gets the log table for the transformation. |
int |
getTransstatus()
Gets the status of the transformation. |
String |
getTransversion()
Gets the version of the transformation. |
Map<String,String> |
getUsedArguments(String[] arguments)
Gets the arguments (and their values) used by this transformation. |
List<StepMeta> |
getUsedSteps()
Gets the list of used steps, which are the steps that are connected by hops. |
List<String> |
getUsedVariables()
Gets a list of the used variables in this transformation. |
String |
getVariable(String variableName)
Gets the value for a variable with the specified name. |
String |
getVariable(String variableName,
String defaultValue)
Gets the value for a variable with the specified name. |
String |
getXML()
Gets the XML representation of this transformation. |
String |
getXML(boolean includeSteps,
boolean includeDatabase,
boolean includeSlaves,
boolean includeClusters,
boolean includePartitions)
Gets the XML representation of this transformation, including or excluding step, database, slave server, cluster, or partition information as specified by the parameters |
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()
Checks whether the transformation has repository references. |
boolean |
haveClusterSchemasChanged()
Checks whether or not any of the clustering schemas have been changed. |
boolean |
haveConnectionsChanged()
Checks for whether the transformation's 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(DatabaseMeta ci)
Finds the location (index) of the specified database. |
int |
indexOfNote(NotePadMeta ni)
Finds the location (index) of the specified note. |
int |
indexOfStep(StepMeta stepMeta)
Finds the location (index) of the specified step. |
int |
indexOfTransHop(TransHopMeta hi)
Finds the location (index) of the specified hop. |
void |
initializeVariablesFrom(VariableSpace parent)
Initialize variables from the specified variable space. |
void |
injectVariables(Map<String,String> prop)
Inject variables from a properties map. |
boolean |
isCapturingStepPerformanceSnapShots()
Checks whether the transformation is capturing step performance snapshots. |
boolean |
isDatabaseConnectionUsed(DatabaseMeta databaseMeta)
This method asks all steps in the transformation whether or not the specified database connection is used. |
boolean |
isFeedbackShown()
Checks if is feedback shown. |
boolean |
isFileReference()
Checks if the transformation is referenced by a file. |
static boolean |
isFileReference(String exactFilename,
String exactTransname)
Checks (using the exact filename and transformation name) if the transformation is referenced by a file. |
boolean |
isRepReference()
Checks if the transformation is referenced by a repository. |
static boolean |
isRepReference(String exactFilename,
String exactTransname)
Checks (using the exact filename and transformation name) if the transformation is referenced by a repository. |
boolean |
isSlaveTransformation()
Checks whether the transformation is a slave transformation. |
boolean |
isStepInformative(StepMeta this_step,
StepMeta prev_step)
Determines whether or not a certain step is informative. |
boolean |
isStepUsedInTransHops(StepMeta stepMeta)
Checks if a step has been used in a hop or not. |
boolean |
isUsingAClusterSchema()
Checks if the transformation is using a cluster schema. |
boolean |
isUsingClusterSchema(ClusterSchema clusterSchema)
Checks if the transformation is using the specified cluster schema. |
boolean |
isUsingPartitionSchema(PartitionSchema partitionSchema)
Checks if the transformation is using the specified partition schema. |
boolean |
isUsingSlaveServer(SlaveServer slaveServer)
Checks if the transformation is using the specified slave server. |
boolean |
isUsingThreadPriorityManagment()
Checks whether the transformation is using thread priority management. |
boolean |
isUsingUniqueConnections()
Checks if the transformation is using unique database connections. |
String[] |
listParameters()
Gets an array of parameter names. |
String[] |
listVariables()
Gets an array of variable names. |
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables)
Parses an XML DOM (starting at the specified Node) that describes the transformation. |
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace)
Parses an XML DOM (starting at the specified Node) that describes the transformation. |
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace,
OverwritePrompter prompter)
Parses an XML DOM (starting at the specified Node) that describes the transformation. |
void |
lookupRepositoryReferences(Repository repository)
Looks up the references after a repository import. |
void |
lowerNote(int p)
Lowers a note to the "bottom" of the list by removing the note at the specified index and re-inserting it at the front. |
void |
nameFromFilename()
Builds a name for the transformation. |
TransAction |
nextUndo()
Gets the next undo transaction on the list. |
int |
nrDatabases()
Gets the number of databases associated with the transformation. |
int |
nrDependencies()
Gets the number of dependencies in the transformation. |
int |
nrNotes()
Gets the number of notes in the transformation. |
int |
nrSteps()
Gets the number of steps in the transformation. |
int |
nrTransHops()
Gets the number of hops in the transformation. |
boolean |
partOfTransHop(StepMeta stepMeta)
Determines whether or not a certain step is part of a hop. |
TransAction |
previousUndo()
Gets the previous undo operation and change the undo pointer. |
void |
raiseNote(int p)
Raises a note to the "top" of the list by removing the note at the specified index and re-inserting it at the end. |
SharedObjects |
readSharedObjects()
Reads the shared objects (steps, connections, etc.). |
Object |
realClone(boolean doClear)
Perform a real clone of the transformation meta-data object, including cloning all lists and copying all values. |
void |
removeAllDependencies()
Clears all the dependencies from the transformation. |
void |
removeDatabase(int i)
Removes the database at the specified index. |
void |
removeDependency(int i)
Removes a dependency from the transformation on a certain location (i.e. |
void |
removeFilenameChangedListener(FilenameChangedListener listener)
Removes the specified FilenameChangedListener. |
void |
removeNameChangedListener(NameChangedListener listener)
Removes the specified NameChangedListener. |
void |
removeNote(int i)
Removes a note from the transformation on a certain location (i.e. |
void |
removeStep(int i)
Removes a step from the transformation on a certain location (i.e. |
void |
removeTransHop(int i)
Removes a hop from the transformation on a certain location (i.e. |
void |
saveSharedObjects()
Save shared objects, including databases, steps, partition schemas, slave servers, and cluster schemas, to a file |
void |
selectAll()
Mark all steps in the transformation as selected. |
void |
setArguments(String[] arguments)
Sets the arguments used for this transformation. |
void |
setCapturingStepPerformanceSnapShots(boolean capturingStepPerformanceSnapShots)
Sets whether the transformation is capturing step performance snapshots. |
void |
setCarteObjectId(String containerObjectId)
Sets the carte object ID. |
void |
setChanged(boolean ch)
Sets whether the transformation has changed. |
void |
setChannelLogTable(ChannelLogTable channelLogTable)
Sets the channel log table for the transformation. |
void |
setClusterSchemas(List<ClusterSchema> clusterSchemas)
Sets list of the cluster schemas used by the transformation. |
void |
setCounters(Hashtable<String,Counter> counters)
Sets the counters (database sequence values, e.g.) for the transformation. |
void |
setCreatedDate(Date createdDate)
Sets the date the transformation was created. |
void |
setCreatedUser(String createdUser)
Sets the user by whom the transformation was created. |
void |
setDatabases(List<DatabaseMeta> databases)
Sets the databases associated with the transformation. |
void |
setDbCache(DBCache dbCache)
Sets the database cache object. |
void |
setDependencies(List<TransDependency> dependencies)
Sets the dependencies for the transformation. |
void |
setDescription(String n)
Sets the description of the transformation. |
void |
setExtendedDescription(String n)
Sets the extended description of the transformation. |
void |
setFeedbackShown(boolean feedbackShown)
Sets whether the feedback should be shown. |
void |
setFeedbackSize(int feedbackSize)
Sets the feedback size. |
void |
setFilename(String fname)
Set the filename of the transformation. |
void |
setInternalKettleVariables()
Sets the internal kettle variables. |
void |
setInternalKettleVariables(VariableSpace var)
Sets the internal kettle variables. |
void |
setLogLevel(LogLevel logLevel)
Sets the log level for the transformation. |
void |
setMaxDateConnection(DatabaseMeta maxDateConnection)
Sets the database connection associated with "max date" processing. |
void |
setMaxDateDifference(double maxDateDifference)
Sets the maximum date difference between start and end dates for row/record processing. |
void |
setMaxDateField(String maxDateField)
Sets the date field associated with "max date" processing. |
void |
setMaxDateOffset(double maxDateOffset)
Sets the amount by which to increase the end date in "max date" processing. |
void |
setMaxDateTable(String maxDateTable)
Sets the table name associated with "max date" processing. |
void |
setMaxUndo(int mu)
Sets the maximum number of undo operations that are allowed. |
void |
setModifiedDate(Date modifiedDate)
Sets the date the transformation was modified. |
void |
setModifiedUser(String modifiedUser)
Sets the user who last modified the transformation. |
void |
setName(String newName)
Set the name of the transformation. |
void |
setObjectId(ObjectId id)
Set the database ID for this object in the repository. |
void |
setObjectRevision(ObjectRevision objectRevision)
Sets the object revision. |
void |
setParameterValue(String key,
String value)
Sets the specified parameter to the specified value. |
void |
setParentVariableSpace(VariableSpace parent)
Sets the parent variable space. |
void |
setPartitionSchemas(List<PartitionSchema> partitionSchemas)
Sets the list of partition schemas for this transformation. |
void |
setPerformanceLogTable(PerformanceLogTable performanceLogTable)
Sets the performance log table for the transformation. |
void |
setPreviousResult(Result previousResult)
Sets the previous result. |
void |
setRepository(Repository repository)
Sets the repository. |
void |
setRepositoryDirectory(RepositoryDirectoryInterface directory)
Sets the repository directory. |
void |
setResultFiles(List<ResultFile> resultFiles)
Sets the list of the files in the result. |
void |
setResultRows(List<RowMetaAndData> resultRows)
Sets the list of result rows. |
void |
setSharedObjects(SharedObjects sharedObjects)
Sets the shared objects. |
void |
setSharedObjectsFile(String sharedObjectsFile)
Sets the shared objects file. |
void |
setSizeRowset(int sizeRowset)
Sets the size of the rowsets. |
void |
setSlaveServers(List<SlaveServer> slaveServers)
Sets the list of slave servers. |
void |
setSlaveStepCopyPartitionDistribution(SlaveStepCopyPartitionDistribution slaveStepCopyPartitionDistribution)
Sets the slave step copy partition distribution. |
void |
setSlaveTransformation(boolean slaveTransformation)
Sets whether the transformation is a slave transformation. |
void |
setSleepTimeEmpty(int sleepTimeEmpty)
Sets the amount of time (in nano-seconds) to wait while the input buffer is empty. |
void |
setSleepTimeFull(int sleepTimeFull)
Sets the amount of time (in nano-seconds) to wait while the input buffer is full. |
void |
setStep(int i,
StepMeta stepMeta)
Changes the content of a step on a certain position. |
void |
setStepLogTable(StepLogTable stepLogTable)
Sets the step log table for the transformation. |
void |
setStepPerformanceCapturingDelay(long stepPerformanceCapturingDelay)
Sets the step performance capturing delay. |
void |
setStepPerformanceCapturingSizeLimit(String stepPerformanceCapturingSizeLimit)
Sets the step performance capturing size limit. |
void |
setTransformationType(TransMeta.TransformationType transformationType)
Sets the transformation type. |
void |
setTransHop(int i,
TransHopMeta hi)
Changes the content of a hop on a certain position. |
void |
setTransLogTable(TransLogTable transLogTable)
Sets the log table for the transformation. |
void |
setTransstatus(int n)
Sets the status of the transformation. |
void |
setTransversion(String n)
Sets the version of the transformation. |
void |
setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
Sets whether the transformation is using thread priority management. |
void |
setUsingUniqueConnections(boolean usingUniqueConnections)
Sets whether the transformation is using unique database connections. |
void |
setVariable(String variableName,
String variableValue)
Sets the specified variable to the specified value |
void |
shareVariablesWith(VariableSpace space)
Share variables with the specified variable space. |
void |
sortHops()
Sorts all the hops in the transformation. |
void |
sortHopsNatural()
Sorts the hops in a natural way: from beginning to end. |
void |
sortSteps()
Puts the steps in alphabetical order. |
Map<StepMeta,Map<StepMeta,Boolean>> |
sortStepsNatural()
Puts the steps in a more natural order: from start to finish. |
String |
toString()
Gets a textual representation of the transformation. |
void |
unselectAll()
Clear the selection of all steps. |
TransAction |
viewNextUndo()
Gets the next undo transaction on the list. |
TransAction |
viewPreviousUndo()
Views previous undo action. |
TransAction |
viewThisUndo()
Views current undo action. |
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 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(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 KettleXMLException
fname
- The filename
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(String fname, VariableSpace parentVariableSpace) throws KettleXMLException
fname
- The filenameparentVariableSpace
- the parent variable space
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(String fname, boolean setInternalVariables) throws KettleXMLException
fname
- The filenamesetInternalVariables
- true if you want to set the internal variables based on this transformation information
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(String fname, Repository rep) throws KettleXMLException
fname
- The filenamerep
- The repository to load the default set of connections from, null if no repository is available
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(String fname, Repository rep, boolean setInternalVariables) throws 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
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(String fname, Repository rep, boolean setInternalVariables, VariableSpace parentVariableSpace) throws 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
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(String fname, Repository rep, boolean setInternalVariables, VariableSpace parentVariableSpace, OverwritePrompter prompter) throws 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
KettleXMLException
- if any errors occur during parsing of the specified filepublic TransMeta(InputStream xmlStream, Repository rep, boolean setInternalVariables, VariableSpace parentVariableSpace, OverwritePrompter prompter) throws KettleXMLException
xmlStream
- the XML input stream from which to read the transformation definitionrep
- the repositorysetInternalVariables
- whether to set internal variables as a result of the creationparentVariableSpace
- the parent variable spaceprompter
- a GUI component that will prompt the user if the new transformation will overwrite an existing one
KettleXMLException
- if any errors occur during parsing of the specified streampublic TransMeta(Node transnode, Repository rep) throws KettleXMLException
transnode
- The XML node to load fromrep
- the repository to reference.
KettleXMLException
- if any errors occur during parsing of the specified fileMethod Detail |
---|
public int compare(TransMeta t1, TransMeta t2)
compare
in interface Comparator<TransMeta>
t1
- the first transformation to comparet2
- the second transformation to compare
public int compareTo(TransMeta o)
compareTo
in interface Comparable<TransMeta>
o
- the o
compare(TransMeta, TransMeta)
,
Comparable.compareTo(java.lang.Object)
public boolean equals(Object obj)
equals
in interface Comparator<TransMeta>
equals
in class Object
obj
- the obj
compare(TransMeta, TransMeta)
,
Object.equals(java.lang.Object)
public Object clone()
clone
in class Object
Object.clone()
public Object realClone(boolean doClear)
doClear
- Whether to clear all of the clone's data before copying from the source object
public ObjectId getObjectId()
getObjectId
in interface LoggingObjectInterface
getObjectId
in interface RepositoryElementInterface
getObjectId
in interface RepositoryObjectInterface
public void setObjectId(ObjectId id)
setObjectId
in interface EngineMetaInterface
setObjectId
in interface RepositoryElementInterface
id
- the database ID for this object in the repository.public void clear()
public void clearUndo()
public List<DatabaseMeta> getDatabases()
getDatabases
in interface HasDatabasesInterface
org.pentaho.di.trans.HasDatabaseInterface#getDatabases()
public void setDatabases(List<DatabaseMeta> databases)
setDatabases
in interface HasDatabasesInterface
databases
- the new databasesorg.pentaho.di.trans.HasDatabaseInterface#setDatabases(java.util.ArrayList)
public void addDatabase(DatabaseMeta databaseMeta)
addDatabase
in interface HasDatabasesInterface
databaseMeta
- the database meta to addorg.pentaho.di.trans.HasDatabaseInterface#addDatabase(org.pentaho.di.core.database.DatabaseMeta)
public void addOrReplaceDatabase(DatabaseMeta databaseMeta)
addOrReplaceDatabase
in interface HasDatabasesInterface
databaseMeta
- the database meta to add or replaceorg.pentaho.di.trans.HasDatabaseInterface#addOrReplaceDatabase(org.pentaho.di.core.database.DatabaseMeta)
public void addStep(StepMeta stepMeta)
stepMeta
- The meta-data for the step to be added.public void addOrReplaceStep(StepMeta stepMeta)
stepMeta
- The meta-data for the step to be added.public void addTransHop(TransHopMeta hi)
hi
- The hop meta-data 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, DatabaseMeta ci)
addDatabase
in interface HasDatabasesInterface
p
- the index into the database listci
- the database meta-dataorg.pentaho.di.trans.HasDatabaseInterface#addDatabase(int, org.pentaho.di.core.database.DatabaseMeta)
public void addStep(int p, StepMeta stepMeta)
p
- The index into the step liststepMeta
- The step to be added.public void addTransHop(int p, TransHopMeta hi)
p
- the index into the hop listhi
- The hop to be added.public void addNote(int p, NotePadMeta ni)
p
- The index into the notes listni
- The note to be added.public void addDependency(int p, TransDependency td)
p
- The index into the dependencies list.td
- The transformation dependency to be added.public DatabaseMeta getDatabase(int i)
getDatabase
in interface HasDatabasesInterface
i
- the index into the database list
org.pentaho.di.trans.HasDatabaseInterface#getDatabase(int)
public List<StepMeta> getSteps()
public StepMeta getStep(int i)
i
- The index into the steps list.
public TransHopMeta getTransHop(int i)
i
- The index into the hops list.
public NotePadMeta getNote(int i)
i
- The index into the notes list.
public TransDependency getDependency(int i)
i
- The index into the dependencies list.
public void removeDatabase(int i)
removeDatabase
in interface HasDatabasesInterface
i
- the index at which to remove the databaseorg.pentaho.di.trans.HasDatabaseInterface#removeDatabase(int)
public void removeStep(int i)
i
- The indexpublic void removeTransHop(int i)
i
- The index into the hops listpublic void removeNote(int i)
i
- The index into the notes listpublic void raiseNote(int p)
p
- the index into the notes list.public void lowerNote(int p)
p
- the index into the notes list.public void removeDependency(int i)
i
- The locationpublic void removeAllDependencies()
public int nrDatabases()
nrDatabases
in interface HasDatabasesInterface
org.pentaho.di.trans.HasDatabaseInterface#nrDatabases()
public int nrSteps()
public int nrTransHops()
public int nrNotes()
public int nrDependencies()
public void setStep(int i, StepMeta stepMeta)
i
- The index into the steps liststepMeta
- The step meta-data to setpublic void setTransHop(int i, TransHopMeta hi)
i
- The index into the hops listhi
- The hop meta-data to setpublic List<StepMeta> getUsedSteps()
public DatabaseMeta findDatabase(String name)
findDatabase
in interface HasDatabasesInterface
name
- the name of the desired database
org.pentaho.di.trans.HasDatabaseInterface#findDatabase(java.lang.String)
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.disabledToo
- the disabled too
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 frominfo
- true if only the informational steps are desired, false otherwise
public int findNrPrevSteps(StepMeta stepMeta)
stepMeta
- The source step
public StepMeta findPrevStep(String stepname, int nr)
stepname
- The source step namenr
- the index into the step list
public StepMeta findPrevStep(String stepname, int nr, boolean info)
stepname
- The name of the stepnr
- The index into the step listinfo
- true if only the informational steps are desired, false otherwise
public StepMeta findPrevStep(StepMeta stepMeta, int nr)
stepMeta
- The source step informationnr
- the index into the hops list
public int findNrPrevSteps(StepMeta stepMeta, boolean info)
stepMeta
- The name of the stepinfo
- true if only the informational steps are desired, false otherwise
public StepMeta findPrevStep(StepMeta stepMeta, int nr, boolean info)
stepMeta
- The stepnr
- The index into the hops listinfo
- 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 RowMetaInterface getPrevInfoFields(String stepname) throws KettleStepException
stepname
- The name of the step
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getPrevInfoFields(StepMeta stepMeta) throws KettleStepException
stepMeta
- The receiving step
KettleStepException
- the kettle step exceptionpublic 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 queriediconsize
- the iconsize
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 RowMetaInterface getStepFields(String stepname) throws KettleStepException
stepname
- The stepname of the step to be queried.
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getStepFields(StepMeta stepMeta) throws KettleStepException
stepMeta
- The step to be queried.
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getStepFields(StepMeta[] stepMeta) throws KettleStepException
stepMeta
- the step meta
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getStepFields(StepMeta stepMeta, ProgressMonitorListener monitor) throws KettleStepException
stepMeta
- The step to be queried.monitor
- The progress monitor for progress dialog. (null if not used!)
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getStepFields(StepMeta stepMeta, StepMeta targetStep, ProgressMonitorListener monitor) throws KettleStepException
stepMeta
- The step to be queried.targetStep
- the target stepmonitor
- The progress monitor for progress dialog. (null if not used!)
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getPrevStepFields(String stepname) throws KettleStepException
stepname
- The name of the step queried
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getPrevStepFields(StepMeta stepMeta) throws KettleStepException
stepMeta
- The step queried
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getPrevStepFields(StepMeta stepMeta, ProgressMonitorListener monitor) throws KettleStepException
stepMeta
- The step queriedmonitor
- The progress monitor for progress dialog. (null if not used!)
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getThisStepFields(String stepname, RowMetaInterface row) throws 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.
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getThisStepFields(StepMeta stepMeta, StepMeta nextStep, RowMetaInterface row) throws 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.
KettleStepException
- the kettle step exceptionpublic RowMetaInterface getThisStepFields(StepMeta stepMeta, StepMeta nextStep, RowMetaInterface row, ProgressMonitorListener monitor) throws 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.monitor
- the monitor
KettleStepException
- the kettle step exceptionpublic boolean isUsingPartitionSchema(PartitionSchema partitionSchema)
partitionSchema
- the partition schema
public boolean isUsingAClusterSchema()
public boolean isUsingClusterSchema(ClusterSchema clusterSchema)
clusterSchema
- the cluster schema to check
public boolean isUsingSlaveServer(SlaveServer slaveServer) throws KettleException
slaveServer
- the slave server
KettleException
- if any errors occur while checking for the slave serverpublic boolean isRepReference()
public boolean isFileReference()
isRepReference()
public static boolean isRepReference(String exactFilename, String exactTransname)
exactFilename
- the exact filenameexactTransname
- the exact transformation name
public static boolean isFileReference(String exactFilename, String exactTransname)
exactFilename
- the exact filenameexactTransname
- the exact transformation name
isRepReference(String, String)
public int indexOfTransHop(TransHopMeta hi)
hi
- The hop queried
public int indexOfStep(StepMeta stepMeta)
stepMeta
- The step queried
public int indexOfDatabase(DatabaseMeta ci)
indexOfDatabase
in interface HasDatabasesInterface
ci
- the database queried
org.pentaho.di.trans.HasDatabaseInterface#indexOfDatabase(org.pentaho.di.core.database.DatabaseMeta)
public int indexOfNote(NotePadMeta ni)
ni
- The note queried
public String getFileType()
getFileType
in interface EngineMetaInterface
EngineMetaInterface.getFileType()
public String[] getFilterNames()
getFilterNames
in interface EngineMetaInterface
EngineMetaInterface.getFilterNames()
public String[] getFilterExtensions()
Const.STRING_TRANS_FILTER_EXT
getFilterExtensions
in interface EngineMetaInterface
EngineMetaInterface.getFilterExtensions()
public String getDefaultExtension()
Const.STRING_TRANS_DEFAULT_EXT
getDefaultExtension
in interface EngineMetaInterface
EngineMetaInterface.getDefaultExtension()
public String getXML() throws KettleException
getXML
in interface EngineMetaInterface
getXML
in interface XMLInterface
KettleException
- if any errors occur during generation of the XMLXMLInterface.getXML()
public String getXML(boolean includeSteps, boolean includeDatabase, boolean includeSlaves, boolean includeClusters, boolean includePartitions) throws KettleException
includeSteps
- whether to include step dataincludeDatabase
- whether to include database dataincludeSlaves
- whether to include slave server dataincludeClusters
- whether to include cluster dataincludePartitions
- whether to include partition data
KettleException
- if any errors occur during generation of the XMLpublic void loadXML(Node transnode, Repository rep, boolean setInternalVariables) throws 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
KettleXMLException
- if any errors occur during parsing of the specified filepublic void loadXML(Node transnode, Repository rep, boolean setInternalVariables, VariableSpace parentVariableSpace) throws 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
KettleXMLException
- if any errors occur during parsing of the specified filepublic void loadXML(Node transnode, Repository rep, boolean setInternalVariables, VariableSpace parentVariableSpace, OverwritePrompter prompter) throws 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
KettleXMLException
- if any errors occur during parsing of the specified filepublic SharedObjects readSharedObjects() throws KettleException
KettleException
- if any errors occur while reading the shared objectspublic List<StepMeta> getTransHopSteps(boolean all)
all
- true if you want to get ALL the steps from the transformation, false otherwise
public String getName()
getName
in interface EngineMetaInterface
getName
in interface RepositoryElementInterface
getName
in interface RepositoryObjectInterface
public void setName(String newName)
setName
in interface RepositoryElementInterface
newName
- The new name of the transformationpublic void nameFromFilename()
nameFromFilename
in interface EngineMetaInterface
public String getFilename()
getFilename
in interface EngineMetaInterface
getFilename
in interface 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 otherwisepublic void clearChanged()
clearChanged
in interface ChangedFlagInterface
clearChanged
in interface EngineMetaInterface
clearChanged
in class ChangedFlag
public void clearChangedDatabases()
public boolean haveConnectionsChanged()
haveConnectionsChanged
in interface HasDatabasesInterface
org.pentaho.di.trans.HasDatabaseInterface#haveConnectionsChanged()
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 Point[] getSelectedStepLocations()
public 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, Point[] prev, 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 Point getMaximum()
public 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, ProgressMonitorListener monitor) throws KettleStepException
impact
- An ArrayList of DatabaseImpact objects.monitor
- a progress monitor listener to be updated as the transformation is analyzed
KettleStepException
- if any errors occur during analysispublic String getAlternativeStepname(String stepname)
stepname
- The stepname to find an alternative for
public List<SQLStatement> getSQLStatements() throws KettleStepException
KettleStepException
- if any errors occur during SQL statement generationpublic List<SQLStatement> getSQLStatements(ProgressMonitorListener monitor) throws KettleStepException
monitor
- a progress monitor listener to be updated as the SQL statements are generated
KettleStepException
- if any errors occur during SQL statement generationpublic String getSQLStatementsString() throws KettleStepException
KettleStepException
- if any errors occur during SQL statement generationpublic void checkSteps(List<CheckResultInterface> remarks, boolean only_selected, ProgressMonitorListener monitor)
remarks
- The remarks list to add to.only_selected
- true to check only the selected steps, false for all stepsmonitor
- a progress monitor listener to be updated as the SQL statements are generatedpublic List<RowMetaAndData> getResultRows()
public void setResultRows(List<RowMetaAndData> resultRows)
resultRows
- The list of result rows to set.public RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory
in interface EngineMetaInterface
getRepositoryDirectory
in interface LoggingObjectInterface
getRepositoryDirectory
in interface RepositoryElementInterface
public void setRepositoryDirectory(RepositoryDirectoryInterface directory)
setRepositoryDirectory
in interface 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,Counter> getCounters()
public void setCounters(Hashtable<String,Counter> counters)
counters
- The counters to set.public List<TransDependency> getDependencies()
public void setDependencies(List<TransDependency> dependencies)
dependencies
- The dependency list to set.public DatabaseMeta getMaxDateConnection()
public void setMaxDateConnection(DatabaseMeta maxDateConnection)
maxDateConnection
- the database meta-data to setgetMaxDateConnection()
public double getMaxDateDifference()
public void setMaxDateDifference(double maxDateDifference)
maxDateDifference
- The date difference to set.getMaxDateDifference()
public String getMaxDateField()
getMaxDateConnection()
public void setMaxDateField(String maxDateField)
maxDateField
- The date field to set.getMaxDateField()
public double getMaxDateOffset()
setMaxDateOffset(double)
public void setMaxDateOffset(double maxDateOffset)
maxDateOffset
- The maxDateOffset to set.public String getMaxDateTable()
getMaxDateConnection()
public void setMaxDateTable(String maxDateTable)
maxDateTable
- The maxDateTable to set.getMaxDateTable()
public int getSizeRowset()
public void setSizeRowset(int sizeRowset)
sizeRowset
- The sizeRowset to set.public DBCache getDbCache()
public void setDbCache(DBCache dbCache)
dbCache
- the database cache object to setpublic Date getCreatedDate()
getCreatedDate
in interface EngineMetaInterface
public void setCreatedDate(Date createdDate)
setCreatedDate
in interface EngineMetaInterface
createdDate
- The creation date to set.public void setCreatedUser(String createdUser)
setCreatedUser
in interface EngineMetaInterface
createdUser
- The user to set.public String getCreatedUser()
getCreatedUser
in interface EngineMetaInterface
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface EngineMetaInterface
modifiedDate
- The modified date to set.public Date getModifiedDate()
getModifiedDate
in interface EngineMetaInterface
public void setModifiedUser(String modifiedUser)
setModifiedUser
in interface EngineMetaInterface
modifiedUser
- The user name to set.public String getModifiedUser()
getModifiedUser
in interface EngineMetaInterface
public String getDescription()
getDescription
in interface RepositoryElementInterface
public void setDescription(String n)
setDescription
in interface RepositoryElementInterface
n
- The description of the transformation to set.public void setExtendedDescription(String n)
n
- The extended description of the transformation to set.public 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 KettleDatabaseException
KettleDatabaseException
- if any errors occur during query cancellationpublic Map<String,String> getUsedArguments(String[] arguments)
arguments
- the values for the arguments
public int getSleepTimeEmpty()
public int getSleepTimeFull()
public void setSleepTimeEmpty(int sleepTimeEmpty)
sleepTimeEmpty
- the number of nano-seconds to wait while the input buffer is empty.public void setSleepTimeFull(int sleepTimeFull)
sleepTimeFull
- the number of nano-seconds to wait while the input buffer is full.public boolean isDatabaseConnectionUsed(DatabaseMeta databaseMeta)
databaseMeta
- The connection to check
public List<StringSearchResult> getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes, boolean includePasswords)
searchSteps
- true if steps should be searched, false otherwisesearchDatabases
- true if databases should be searched, false otherwisesearchNotes
- true if notes should be searched, false otherwiseincludePasswords
- true if passwords should be searched, false otherwise
public List<StringSearchResult> getStringList(boolean searchSteps, boolean searchDatabases, boolean searchNotes)
searchSteps
- true if steps should be searched, false otherwisesearchDatabases
- true if databases should be searched, false otherwisesearchNotes
- true if notes should be searched, false otherwise
public List<String> getUsedVariables()
public Result getPreviousResult()
public void setPreviousResult(Result previousResult)
previousResult
- The previous Result to set.public List<ResultFile> getResultFiles()
public void setResultFiles(List<ResultFile> resultFiles)
resultFiles
- The list of ResultFiles to set.public List<PartitionSchema> getPartitionSchemas()
public void setPartitionSchemas(List<PartitionSchema> partitionSchemas)
partitionSchemas
- the list of PartitionSchemas to setpublic String[] getPartitionSchemasNames()
public boolean isFeedbackShown()
public void setFeedbackShown(boolean feedbackShown)
feedbackShown
- true if feedback should be shown, false otherwisepublic int getFeedbackSize()
public void setFeedbackSize(int feedbackSize)
feedbackSize
- the feedback size to setpublic boolean isUsingUniqueConnections()
public void setUsingUniqueConnections(boolean usingUniqueConnections)
usingUniqueConnections
- true if the transformation is using unique database connections, false otherwisepublic List<ClusterSchema> getClusterSchemas()
public void setClusterSchemas(List<ClusterSchema> clusterSchemas)
clusterSchemas
- the list of ClusterSchemas to setpublic 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)
sharedObjectsFile
- the new shared objects filepublic void saveSharedObjects() throws KettleException
saveSharedObjects
in interface EngineMetaInterface
KettleException
- the kettle exceptionEngineMetaInterface.saveSharedObjects()
,
SharedObjects.saveToFile()
public boolean isUsingThreadPriorityManagment()
public void setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
usingThreadPriorityManagment
- true if the transformation is using thread priority management, false otherwisepublic SlaveServer findSlaveServer(String serverString)
serverString
- the name of the slave server to find
public String[] getSlaveServerNames()
public List<SlaveServer> getSlaveServers()
getSlaveServers
in interface HasSlaveServersInterface
public void setSlaveServers(List<SlaveServer> slaveServers)
slaveServers
- the list of SlaveServers to setpublic void checkRowMixingStatically(StepMeta stepMeta, ProgressMonitorListener monitor) throws KettleRowException
stepMeta
- the step to checkmonitor
- the monitor
KettleRowException
- in case we detect a row mixing violationpublic void setInternalKettleVariables()
setInternalKettleVariables
in interface EngineMetaInterface
EngineMetaInterface.setInternalKettleVariables()
public void setInternalKettleVariables(VariableSpace var)
var
- the new internal kettle variablespublic void copyVariablesFrom(VariableSpace space)
copyVariablesFrom
in interface VariableSpace
space
- the variable space from which to copyVariableSpace.copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace)
public String environmentSubstitute(String aString)
environmentSubstitute
in interface VariableSpace
aString
- the string to resolve
VariableSpace.environmentSubstitute(java.lang.String)
public String[] environmentSubstitute(String[] aString)
environmentSubstitute
in interface VariableSpace
aString
- the string array to resolve
VariableSpace.environmentSubstitute(java.lang.String[])
public VariableSpace getParentVariableSpace()
getParentVariableSpace
in interface VariableSpace
VariableSpace.getParentVariableSpace()
public void setParentVariableSpace(VariableSpace parent)
setParentVariableSpace
in interface VariableSpace
parent
- the new parent variable spaceVariableSpace.setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace)
public String getVariable(String variableName, String defaultValue)
getVariable
in interface VariableSpace
variableName
- the variable namedefaultValue
- the default value
VariableSpace.getVariable(java.lang.String, java.lang.String)
public String getVariable(String variableName)
getVariable
in interface VariableSpace
variableName
- the variable name
VariableSpace.getVariable(java.lang.String)
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable
in interface VariableSpace
variableName
- the name of the variable to interrogatedefaultValue
- The default value to return.
VariableSpace.getBooleanValueOfVariable(java.lang.String, boolean)
public void initializeVariablesFrom(VariableSpace parent)
initializeVariablesFrom
in interface VariableSpace
parent
- the parent variable spaceVariableSpace.initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace)
public String[] listVariables()
listVariables
in interface VariableSpace
VariableSpace.listVariables()
public void setVariable(String variableName, String variableValue)
setVariable
in interface VariableSpace
variableName
- the variable namevariableValue
- the variable valueVariableSpace.setVariable(java.lang.String, java.lang.String)
public void shareVariablesWith(VariableSpace space)
shareVariablesWith
in interface VariableSpace
space
- the variable space with which to share variablesVariableSpace.shareVariablesWith(org.pentaho.di.core.variables.VariableSpace)
public void injectVariables(Map<String,String> prop)
injectVariables
in interface VariableSpace
prop
- the properties Map from which to inject variablesVariableSpace.injectVariables(java.util.Map)
public StepMeta findMappingInputStep(String stepname) throws KettleStepException
stepname
- the name to search for
KettleStepException
- if any errors occur during the searchpublic StepMeta findMappingOutputStep(String stepname) throws KettleStepException
stepname
- the name to search for
KettleStepException
- if any errors occur during the searchpublic List<ResourceReference> getResourceDependencies()
public String exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface resourceNamingInterface, Repository repository) throws KettleException
exportResources
in interface ResourceExportInterface
space
- the variable space to exportdefinitions
- the definitions to exportresourceNamingInterface
- the resource naming interfacerepository
- the repository
KettleException
- if any errors occur during the exportResourceExportInterface.exportResources(org.pentaho.di.core.variables.VariableSpace, java.util.Map, org.pentaho.di.resource.ResourceNamingInterface, org.pentaho.di.repository.Repository)
public SlaveStepCopyPartitionDistribution getSlaveStepCopyPartitionDistribution()
public void setSlaveStepCopyPartitionDistribution(SlaveStepCopyPartitionDistribution slaveStepCopyPartitionDistribution)
slaveStepCopyPartitionDistribution
- the slaveStepCopyPartitionDistribution to setpublic ClusterSchema findFirstUsedClusterSchema()
public boolean isSlaveTransformation()
public void setSlaveTransformation(boolean slaveTransformation)
slaveTransformation
- true if the transformation is a slave transformation, false otherwisepublic Repository getRepository()
public void setRepository(Repository repository)
repository
- the repository to setpublic boolean isCapturingStepPerformanceSnapShots()
public void setCapturingStepPerformanceSnapShots(boolean capturingStepPerformanceSnapShots)
capturingStepPerformanceSnapShots
- true if the transformation is capturing step performance snapshots, false otherwisepublic long getStepPerformanceCapturingDelay()
public void setStepPerformanceCapturingDelay(long stepPerformanceCapturingDelay)
stepPerformanceCapturingDelay
- the stepPerformanceCapturingDelay to setpublic String getStepPerformanceCapturingSizeLimit()
public void setStepPerformanceCapturingSizeLimit(String stepPerformanceCapturingSizeLimit)
stepPerformanceCapturingSizeLimit
- the step performance capturing size limit to setpublic SharedObjects getSharedObjects()
public void setSharedObjects(SharedObjects sharedObjects)
sharedObjects
- the SharedObjects to setpublic void clearCaches()
public void addNameChangedListener(NameChangedListener listener)
listener
- the listener to addpublic void removeNameChangedListener(NameChangedListener listener)
listener
- the listenerpublic void addFilenameChangedListener(FilenameChangedListener listener)
listener
- the listener to addpublic void removeFilenameChangedListener(FilenameChangedListener listener)
listener
- the listenerpublic void activateParameters()
activateParameters
in interface NamedParams
NamedParams.activateParameters()
public void addParameterDefinition(String key, String defaultValue, String description) throws DuplicateParamException
addParameterDefinition
in interface NamedParams
key
- the keydefaultValue
- the default valuedescription
- the description
DuplicateParamException
- the duplicate param exceptionNamedParams.addParameterDefinition(java.lang.String, java.lang.String, java.lang.String)
public String getParameterDescription(String key) throws UnknownParamException
getParameterDescription
in interface NamedParams
key
- the key
UnknownParamException
- the unknown param exceptionNamedParams.getParameterDescription(java.lang.String)
public String getParameterDefault(String key) throws UnknownParamException
getParameterDefault
in interface NamedParams
key
- the key
UnknownParamException
- the unknown param exceptionNamedParams.getParameterDefault(java.lang.String)
public String getParameterValue(String key) throws UnknownParamException
getParameterValue
in interface NamedParams
key
- the name of the parameter
UnknownParamException
- if no such parameter existsNamedParams.getParameterValue(java.lang.String)
public String[] listParameters()
listParameters
in interface NamedParams
NamedParams.listParameters()
public void setParameterValue(String key, String value) throws UnknownParamException
setParameterValue
in interface NamedParams
key
- the name of the parametervalue
- the value to set
UnknownParamException
- if no such parameter existsNamedParams.setParameterValue(java.lang.String, java.lang.String)
public void eraseParameters()
eraseParameters
in interface NamedParams
NamedParams.eraseParameters()
public void clearParameters()
clearParameters
in interface NamedParams
NamedParams.clearParameters()
public void copyParametersFrom(NamedParams params)
copyParametersFrom
in interface NamedParams
params
- the parameters from which to copyNamedParams.copyParametersFrom(org.pentaho.di.core.parameters.NamedParams)
public RepositoryObjectType getRepositoryElementType()
getRepositoryElementType
in interface RepositoryElementInterface
RepositoryElementInterface.getRepositoryElementType()
public void setObjectRevision(ObjectRevision objectRevision)
setObjectRevision
in interface RepositoryElementInterface
objectRevision
- the new object revisionRepositoryElementInterface.setObjectRevision(org.pentaho.di.repository.ObjectRevision)
public ObjectRevision getObjectRevision()
getObjectRevision
in interface LoggingObjectInterface
getObjectRevision
in interface RepositoryElementInterface
RepositoryElementInterface.getObjectRevision()
public LogChannelInterface getLogChannel()
public String getLogChannelId()
getLogChannelId
in interface LoggingObjectInterface
LoggingObjectInterface.getLogChannelId()
public String getObjectName()
getObjectName
in interface LoggingObjectInterface
LoggingObjectInterface.getObjectName()
public String getObjectCopy()
getObjectCopy
in interface LoggingObjectInterface
LoggingObjectInterface.getObjectCopy()
public LoggingObjectType getObjectType()
getObjectType
in interface LoggingObjectInterface
LoggingObjectInterface.getObjectType()
public LoggingObjectInterface getParent()
getParent
in interface LoggingObjectInterface
LoggingObjectInterface.getParent()
public LogLevel getLogLevel()
getLogLevel
in interface LoggingObjectInterface
LoggingObjectInterface.getLogLevel()
public void setLogLevel(LogLevel logLevel)
logLevel
- the new log levelpublic TransLogTable getTransLogTable()
public void setTransLogTable(TransLogTable transLogTable)
the
- log table to setpublic String[] getDatabaseNames()
public PerformanceLogTable getPerformanceLogTable()
public void setPerformanceLogTable(PerformanceLogTable performanceLogTable)
performanceLogTable
- the performance log table to setpublic ChannelLogTable getChannelLogTable()
public void setChannelLogTable(ChannelLogTable channelLogTable)
channelLogTable
- the channel log table to setpublic StepLogTable getStepLogTable()
public void setStepLogTable(StepLogTable stepLogTable)
stepLogTable
- the step log table to setpublic List<LogTableInterface> getLogTables()
public TransMeta.TransformationType getTransformationType()
public void setTransformationType(TransMeta.TransformationType transformationType)
transformationType
- the transformationType to setpublic boolean canSave()
canSave
in interface EngineMetaInterface
EngineMetaInterface.canSave()
public String getContainerObjectId()
getContainerObjectId
in interface LoggingObjectInterface
public void setCarteObjectId(String containerObjectId)
containerObjectId
- the container object ID to setpublic void writeXML(String filename) throws KettleXMLException
filename
- The filename to save to
KettleXMLException
- in case something goes wrong.public Date getRegistrationDate()
getRegistrationDate
in interface LoggingObjectInterface
public boolean hasRepositoryReferences()
public void lookupRepositoryReferences(Repository repository) throws KettleException
repository
- the repository to reference.
KettleException
- the kettle exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |