Package org.pentaho.di.trans
Class SlaveStepCopyPartitionDistribution
java.lang.Object
org.pentaho.di.trans.SlaveStepCopyPartitionDistribution
This class keeps track of which step copy in which transformation is responsible for handling a certain partition nr.
This distribution is created BEFORE the slave transformations are sent to the slave servers. As such, it will be easy
to link a step copy on a certain slave server uniquely to a certain partition. That is to say, it will be done the
same way accross the complete cluster.
- Author:
- matt
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionint
addPartition
(String slaveServerName, String partitionSchemaName, int stepCopyNr) Add a partition number to the distribution if it doesn't already exist.void
addPartition
(String slaveServerName, String partitionSchemaName, int stepCopyNr, int partitionNr) Add a partition number to the distribution for re-use at runtime.boolean
int
getPartition
(String slaveServerName, String partitionSchemaName, int stepCopyNr) getXML()
int
hashCode()
void
setOriginalPartitionSchemas
(List<PartitionSchema> originalPartitionSchemas)
-
Field Details
-
XML_TAG
- See Also:
-
-
Constructor Details
-
SlaveStepCopyPartitionDistribution
public SlaveStepCopyPartitionDistribution() -
SlaveStepCopyPartitionDistribution
-
-
Method Details
-
addPartition
public void addPartition(String slaveServerName, String partitionSchemaName, int stepCopyNr, int partitionNr) Add a partition number to the distribution for re-use at runtime.- Parameters:
slaveServerName
-partitionSchemaName
-stepCopyNr
-partitionNr
-
-
addPartition
Add a partition number to the distribution if it doesn't already exist.- Parameters:
slaveServerName
-partitionSchemaName
-stepCopyNr
-- Returns:
- The found or created partition number
-
getPartition
-
getXML
-
getDistribution
-
getOriginalPartitionSchemas
- Returns:
- the originalPartitionSchemas
-
setOriginalPartitionSchemas
- Parameters:
originalPartitionSchemas
- the originalPartitionSchemas to set
-
equals
-
hashCode
public int hashCode()
-