|
||||||||||
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 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 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,
VariableSpace parentVariableSpace,
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,
VariableSpace parentVariableSpace)
Parse a file containing the XML that describes the transformation. |
|
TransMeta(String fname,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace,
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,
VariableSpace parentVariableSpace)
Parse 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()
Activate the currently set parameters |
void |
addDatabase(DatabaseMeta databaseMeta)
Add a database connection to the transformation. |
void |
addDatabase(int p,
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(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)
Add a parameter definition to this set. |
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,
Point[] prev,
Point[] curr,
int type_of_change,
boolean nextAlso)
Add an undo operation to the undo list |
void |
analyseImpact(List<DatabaseImpact> impact,
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,
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. |
void |
clearCaches()
|
void |
clearChanged()
Clears the different changed flags of the transformation. |
void |
clearChangedDatabases()
Clears the different changed flags of the transformation. |
void |
clearParameters()
Clear all parameters |
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(NamedParams params)
Copy params to these named parameters (clearing out first). |
void |
copyVariablesFrom(VariableSpace space)
Copy the variables from another space, without initializing with the defaults. |
String |
environmentSubstitute(String aString)
Substitute the string using the current variable space. |
String[] |
environmentSubstitute(String[] aString)
Replaces environment variables in an array of strings. |
boolean |
equals(Object obj)
|
void |
eraseParameters()
Clear the values. |
String |
exportResources(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 |
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)
This method returns a boolean for the new variable check boxes. |
ChannelLogTable |
getChannelLogTable()
|
String[] |
getClusterSchemaNames()
|
List<ClusterSchema> |
getClusterSchemas()
|
String |
getContainerObjectId()
|
Hashtable<String,Counter> |
getCounters()
|
Date |
getCreatedDate()
|
String |
getCreatedUser()
|
DatabaseMeta |
getDatabase(int i)
Retrieves a database connection information a a certain location. |
String[] |
getDatabaseNames()
|
List<DatabaseMeta> |
getDatabases()
Get an ArrayList of defined DatabaseInfo objects. |
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. |
LogChannelInterface |
getLogChannel()
|
String |
getLogChannelId()
|
LogLevel |
getLogLevel()
|
List<LogTableInterface> |
getLogTables()
|
DatabaseMeta |
getMaxDateConnection()
|
double |
getMaxDateDifference()
|
String |
getMaxDateField()
|
double |
getMaxDateOffset()
|
String |
getMaxDateTable()
|
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 |
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()
|
ObjectId |
getObjectId()
Get the database ID in the repository for this object. |
String |
getObjectName()
|
ObjectRevision |
getObjectRevision()
|
LoggingObjectType |
getObjectType()
|
String |
getParameterDefault(String key)
Get the default value of a parameter. |
String |
getParameterDescription(String key)
Get the description of a parameter. |
String |
getParameterValue(String key)
Get the value of a parameter. |
LoggingObjectInterface |
getParent()
|
VariableSpace |
getParentVariableSpace()
Get the parent of the variable space. |
List<PartitionSchema> |
getPartitionSchemas()
|
String[] |
getPartitionSchemasNames()
|
String |
getPathAndName()
|
PerformanceLogTable |
getPerformanceLogTable()
|
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()
|
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()
Stub |
Repository |
getRepository()
|
RepositoryDirectoryInterface |
getRepositoryDirectory()
|
RepositoryObjectType |
getRepositoryElementType()
|
List<ResourceReference> |
getResourceDependencies()
|
List<ResultFile> |
getResultFiles()
|
List<RowMetaAndData> |
getResultRows()
|
Point[] |
getSelectedNoteLocations()
Get an array of all the selected step and note locations |
List<NotePadMeta> |
getSelectedNotes()
Get an array of all the selected notes |
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<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 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. |
RowMetaInterface |
getStepFields(StepMeta stepMeta)
Returns the fields that are emitted by a certain step |
RowMetaInterface |
getStepFields(StepMeta[] stepMeta)
|
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)
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. |
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()
|
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)
Get the value of a variable. |
String |
getVariable(String variableName,
String defaultValue)
Get the value of a variable with a default in case the variable is not found. |
String |
getXML()
Describes the Object implementing this interface as XML |
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(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(VariableSpace parent)
Initialize variable space using the defaults, copy over the variables from the parent (using copyVariablesFrom()), after this the "injected" variables should be inserted (injectVariables()). |
void |
injectVariables(Map<String,String> prop)
Inject variables. |
boolean |
isCapturingStepPerformanceSnapShots()
|
boolean |
isDatabaseConnectionUsed(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()
List the parameters. |
String[] |
listVariables()
List the variables (not the values) that are currently in the variable space. |
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,
VariableSpace parentVariableSpace)
Parse a file containing the XML that describes the transformation. |
void |
loadXML(Node transnode,
Repository rep,
boolean setInternalVariables,
VariableSpace parentVariableSpace,
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,Counter> counters)
|
void |
setCreatedDate(Date createdDate)
|
void |
setCreatedUser(String createdUser)
|
void |
setDatabases(List<DatabaseMeta> databases)
|
void |
setDbCache(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(VariableSpace var)
|
void |
setLogLevel(LogLevel logLevel)
|
void |
setMaxDateConnection(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(ObjectId id)
Set the database ID for this object in the repository. |
void |
setObjectRevision(ObjectRevision objectRevision)
|
void |
setParameterValue(String key,
String value)
Set the value of a parameter. |
void |
setParentVariableSpace(VariableSpace parent)
Set the parent variable space |
void |
setPartitionSchemas(List<PartitionSchema> partitionSchemas)
|
void |
setPerformanceLogTable(PerformanceLogTable performanceLogTable)
|
void |
setPreviousResult(Result previousResult)
|
void |
setRepository(Repository repository)
|
void |
setRepositoryDirectory(RepositoryDirectoryInterface directory)
|
void |
setResultFiles(List<ResultFile> resultFiles)
|
void |
setResultRows(List<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)
Sets a variable in the Kettle Variables list. |
void |
shareVariablesWith(VariableSpace space)
Share a variable space from another variable 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 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
public TransMeta(String fname, VariableSpace parentVariableSpace) throws KettleXMLException
fname
- The filenameparentVariableSpace
-
KettleXMLException
public 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
public 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
public 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
public 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
public 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
public TransMeta(InputStream xmlStream, Repository rep, boolean setInternalVariables, VariableSpace parentVariableSpace, OverwritePrompter prompter) throws KettleXMLException
KettleXMLException
public TransMeta(Node transnode, Repository rep) throws KettleXMLException
transnode
- The XML node to load fromrep
- the repository to reference.
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 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()
HasDatabasesInterface
getDatabases
in interface HasDatabasesInterface
public void setDatabases(List<DatabaseMeta> databases)
setDatabases
in interface HasDatabasesInterface
databases
- The databases to set.public void addDatabase(DatabaseMeta databaseMeta)
HasDatabasesInterface
addDatabase
in interface HasDatabasesInterface
databaseMeta
- The database connection information.public void addOrReplaceDatabase(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, 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 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 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 RowMetaInterface getPrevInfoFields(String stepname) throws KettleStepException
stepname
- The name of the step
KettleStepException
public RowMetaInterface getPrevInfoFields(StepMeta stepMeta) throws KettleStepException
stepMeta
- The receiving step
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 RowMetaInterface getStepFields(String stepname) throws KettleStepException
stepname
- The stepname of the step to be queried.
KettleStepException
public RowMetaInterface getStepFields(StepMeta stepMeta) throws KettleStepException
stepMeta
- The step to be queried.
KettleStepException
public RowMetaInterface getStepFields(StepMeta[] stepMeta) throws KettleStepException
KettleStepException
public 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
public 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
public RowMetaInterface getPrevStepFields(String stepname) throws KettleStepException
stepname
- The name of the step queried
KettleStepException
public RowMetaInterface getPrevStepFields(StepMeta stepMeta) throws KettleStepException
stepMeta
- The step queried
KettleStepException
public RowMetaInterface getPrevStepFields(StepMeta stepMeta, ProgressMonitorListener monitor) throws KettleStepException
stepMeta
- The step queriedmonitor
- The progress monitor for progress dialog. (null if not used!)
KettleStepException
public 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
public 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
public 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.
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 KettleException
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(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 KettleException
XMLInterface
getXML
in interface EngineMetaInterface
getXML
in interface XMLInterface
KettleException
- in case there is an encoding problem.public String getXML(boolean includeSteps, boolean includeDatabase, boolean includeSlaves, boolean includeClusters, boolean includePartitions) throws KettleException
KettleException
public 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
public 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
public 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
public SharedObjects readSharedObjects() throws KettleException
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 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 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 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.
KettleStepException
public String getAlternativeStepname(String stepname)
stepname
- The stepname to find an alternative for..
public List<SQLStatement> getSQLStatements() throws KettleStepException
KettleStepException
public List<SQLStatement> getSQLStatements(ProgressMonitorListener monitor) throws KettleStepException
KettleStepException
public String getSQLStatementsString() throws KettleStepException
KettleStepException
public void checkSteps(List<CheckResultInterface> remarks, boolean only_selected, 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<RowMetaAndData> getResultRows()
public void setResultRows(List<RowMetaAndData> resultRows)
resultRows
- The resultRows 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 dependencies to set.public DatabaseMeta getMaxDateConnection()
public void setMaxDateConnection(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 DBCache getDbCache()
public void setDbCache(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 RepositoryElementInterface
public void setDescription(String n)
setDescription
in interface 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 KettleDatabaseException
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(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 Result getPreviousResult()
public void setPreviousResult(Result previousResult)
previousResult
- The previousResult to set.public List<ResultFile> getResultFiles()
public void setResultFiles(List<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 KettleException
saveSharedObjects
in interface EngineMetaInterface
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, ProgressMonitorListener monitor) throws KettleRowException
stepMeta
- the step to check
KettleRowException
- in case we detect a row mixing violationpublic void setInternalKettleVariables()
setInternalKettleVariables
in interface EngineMetaInterface
public void setInternalKettleVariables(VariableSpace var)
public void copyVariablesFrom(VariableSpace space)
VariableSpace
copyVariablesFrom
in interface VariableSpace
space
- the space to copy the variables from.public String environmentSubstitute(String aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The string to substitute.
public String[] environmentSubstitute(String[] aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The array of strings that wants its variables to be replaced.
public VariableSpace getParentVariableSpace()
VariableSpace
getParentVariableSpace
in interface VariableSpace
public void setParentVariableSpace(VariableSpace parent)
VariableSpace
setParentVariableSpace
in interface VariableSpace
parent
- The parent variable space to setpublic String getVariable(String variableName, String defaultValue)
VariableSpace
getVariable
in interface VariableSpace
variableName
- The name of the variabledefaultValue
- The default value in case the variable could not be
found
public String getVariable(String variableName)
VariableSpace
getVariable
in interface VariableSpace
variableName
- The name of the variable
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
VariableSpace
getBooleanValueOfVariable
in interface VariableSpace
variableName
- The variable to look up.defaultValue
- The default value to return.
static method ValueMeta.convertStringToBoolean()
public void initializeVariablesFrom(VariableSpace parent)
VariableSpace
initializeVariablesFrom
in interface VariableSpace
parent
- the parent to start from, or null if root.public String[] listVariables()
VariableSpace
listVariables
in interface VariableSpace
public void setVariable(String variableName, String variableValue)
VariableSpace
setVariable
in interface VariableSpace
variableName
- The name of the variable to setvariableValue
- The value of the variable to set. If the
variableValue is null, the variable is cleared
from the list.public void shareVariablesWith(VariableSpace space)
VariableSpace
shareVariablesWith
in interface VariableSpace
space
- Variable space to be shared.public void injectVariables(Map<String,String> prop)
VariableSpace
injectVariables
in interface VariableSpace
prop
- Properties object containing key-value pairs.public StepMeta findMappingInputStep(String stepname) throws KettleStepException
KettleStepException
public StepMeta findMappingOutputStep(String stepname) throws KettleStepException
KettleStepException
public List<ResourceReference> getResourceDependencies()
public String exportResources(VariableSpace space, Map<String,ResourceDefinition> definitions, ResourceNamingInterface resourceNamingInterface, Repository repository) throws 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
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()
NamedParams
activateParameters
in interface NamedParams
public void addParameterDefinition(String key, String defaultValue, String description) throws DuplicateParamException
NamedParams
addParameterDefinition
in interface NamedParams
key
- Name of the parameter.defaultValue
- default value.description
- Description of the parameter.
DuplicateParamException
- Upon duplicate parameter definitionspublic String getParameterDescription(String key) throws UnknownParamException
NamedParams
getParameterDescription
in interface NamedParams
key
- Key to get value for.
UnknownParamException
- Parameter 'key' is unknown.public String getParameterDefault(String key) throws UnknownParamException
NamedParams
getParameterDefault
in interface NamedParams
key
- Key to get value for.
UnknownParamException
- Parameter 'key' is unknown.public String getParameterValue(String key) throws UnknownParamException
NamedParams
getParameterValue
in interface NamedParams
key
- Key to get value for.
UnknownParamException
- Parameter 'key' is unknown.public String[] listParameters()
NamedParams
listParameters
in interface NamedParams
public void setParameterValue(String key, String value) throws UnknownParamException
NamedParams
setParameterValue
in interface NamedParams
key
- key to set value ofvalue
- value to set it to.
UnknownParamException
- Parameter 'key' is unknown.public void eraseParameters()
NamedParams
eraseParameters
in interface NamedParams
public void clearParameters()
NamedParams
clearParameters
in interface NamedParams
public void copyParametersFrom(NamedParams params)
NamedParams
copyParametersFrom
in interface NamedParams
params
- the parameters to copy from.public RepositoryObjectType getRepositoryElementType()
getRepositoryElementType
in interface RepositoryElementInterface
public void setObjectRevision(ObjectRevision objectRevision)
setObjectRevision
in interface RepositoryElementInterface
public ObjectRevision getObjectRevision()
getObjectRevision
in interface LoggingObjectInterface
getObjectRevision
in interface RepositoryElementInterface
public LogChannelInterface getLogChannel()
public String getLogChannelId()
getLogChannelId
in interface LoggingObjectInterface
public String getObjectName()
getObjectName
in interface LoggingObjectInterface
public String getObjectCopy()
getObjectCopy
in interface LoggingObjectInterface
public LoggingObjectType getObjectType()
getObjectType
in interface LoggingObjectInterface
public LoggingObjectInterface getParent()
getParent
in interface LoggingObjectInterface
public LogLevel getLogLevel()
getLogLevel
in interface LoggingObjectInterface
public void setLogLevel(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<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 LoggingObjectInterface
public void setCarteObjectId(String containerObjectId)
containerObjectId
- the containerObjectId 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |