org.pentaho.di.trans
Class ModPartitioner

java.lang.Object
  extended by org.pentaho.di.trans.BasePartitioner
      extended by org.pentaho.di.trans.ModPartitioner
All Implemented Interfaces:
Partitioner

public class ModPartitioner
extends BasePartitioner


Constructor Summary
ModPartitioner()
           
 
Method Summary
 ModPartitioner clone()
          Clone.
 String getDescription()
          Gets the description.
 String getDialogClassName()
          Gets the dialog class name.
 String getFieldName()
           
 Partitioner getInstance()
          Gets the single instance of Partitioner.
 int getPartition(RowMetaInterface rowMeta, Object[] row)
          Gets the partition.
 String getXML()
          Gets the xml.
 void loadRep(Repository rep, ObjectId id_step)
          Load rep.
 void loadXML(Node partitioningMethodNode)
          Load xml.
 void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
          Saves partitioning properties in the repository for the given step.
 void setFieldName(String fieldName)
           
 
Methods inherited from class org.pentaho.di.trans.BasePartitioner
getId, getMeta, getNrPartitions, init, setDescription, setId, setMeta, setNrPartitions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModPartitioner

public ModPartitioner()
Method Detail

getInstance

public Partitioner getInstance()
Description copied from interface: Partitioner
Gets the single instance of Partitioner.

Specified by:
getInstance in interface Partitioner
Specified by:
getInstance in class BasePartitioner
Returns:
single instance of Partitioner

clone

public ModPartitioner clone()
Description copied from interface: Partitioner
Clone.

Specified by:
clone in interface Partitioner
Overrides:
clone in class BasePartitioner
Returns:
the partitioner

getDialogClassName

public String getDialogClassName()
Description copied from interface: Partitioner
Gets the dialog class name.

Returns:
the dialog class name

getPartition

public int getPartition(RowMetaInterface rowMeta,
                        Object[] row)
                 throws KettleException
Description copied from interface: Partitioner
Gets the partition.

Parameters:
rowMeta - the row meta
row - the r
Returns:
the partition
Throws:
KettleException - the kettle exception

getDescription

public String getDescription()
Description copied from interface: Partitioner
Gets the description.

Specified by:
getDescription in interface Partitioner
Overrides:
getDescription in class BasePartitioner
Returns:
the description

getXML

public String getXML()
Description copied from interface: Partitioner
Gets the xml.

Returns:
the xml

loadXML

public void loadXML(Node partitioningMethodNode)
             throws KettleXMLException
Description copied from interface: Partitioner
Load xml.

Parameters:
partitioningMethodNode - the partitioning method node
Throws:
KettleXMLException - the kettle xml exception

saveRep

public void saveRep(Repository rep,
                    ObjectId id_transformation,
                    ObjectId id_step)
             throws KettleException
Description copied from interface: Partitioner
Saves partitioning properties in the repository for the given step.

Parameters:
rep - the repository to save in
id_transformation - the ID of the transformation
id_step - the ID of the step
Throws:
KettleDatabaseException - In case anything goes wrong
KettleException

loadRep

public void loadRep(Repository rep,
                    ObjectId id_step)
             throws KettleException
Description copied from interface: Partitioner
Load rep.

Parameters:
rep - the rep
id_step - the id_step
Throws:
KettleException - the kettle exception

getFieldName

public String getFieldName()

setFieldName

public void setFieldName(String fieldName)