org.pentaho.di.trans
Interface Partitioner

All Known Implementing Classes:
BasePartitioner, ModPartitioner

public interface Partitioner


Method Summary
 Partitioner clone()
           
 String getDescription()
           
 String getDialogClassName()
           
 String getId()
           
 Partitioner getInstance()
           
 int getPartition(RowMetaInterface rowMeta, Object[] r)
           
 String getXML()
           
 void loadRep(Repository rep, ObjectId id_step)
           
 void loadXML(Node partitioningMethodNode)
           
 void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step)
          Saves partitioning properties in the repository for the given step.
 void setDescription(String description)
           
 void setId(String id)
           
 void setMeta(StepPartitioningMeta meta)
           
 

Method Detail

getInstance

Partitioner getInstance()

getPartition

int getPartition(RowMetaInterface rowMeta,
                 Object[] r)
                 throws KettleException
Throws:
KettleException

setMeta

void setMeta(StepPartitioningMeta meta)

getId

String getId()

getDescription

String getDescription()

setId

void setId(String id)

setDescription

void setDescription(String description)

getDialogClassName

String getDialogClassName()

clone

Partitioner clone()

getXML

String getXML()

loadXML

void loadXML(Node partitioningMethodNode)
             throws KettleXMLException
Throws:
KettleXMLException

saveRep

void saveRep(Repository rep,
             ObjectId id_transformation,
             ObjectId id_step)
             throws KettleException
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

void loadRep(Repository rep,
             ObjectId id_step)
             throws KettleException
Throws:
KettleException