public class ModPartitioner extends BasePartitioner
| Constructor and Description |
|---|
ModPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
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(org.pentaho.di.core.row.RowMetaInterface rowMeta,
Object[] row)
Gets the partition.
|
String |
getXML()
Gets the xml.
|
void |
loadRep(Repository rep,
org.pentaho.di.repository.ObjectId id_step)
Load rep.
|
void |
loadXML(Node partitioningMethodNode)
Load xml.
|
void |
saveRep(Repository rep,
org.pentaho.di.repository.ObjectId id_transformation,
org.pentaho.di.repository.ObjectId id_step)
Saves partitioning properties in the repository for the given step.
|
void |
setFieldName(String fieldName) |
getId, getMeta, getNrPartitions, init, setDescription, setId, setMeta, setNrPartitionspublic Partitioner getInstance()
PartitionergetInstance in interface PartitionergetInstance in class BasePartitionerpublic ModPartitioner clone()
Partitionerclone in interface Partitionerclone in class BasePartitionerpublic String getDialogClassName()
Partitionerpublic int getPartition(org.pentaho.di.core.row.RowMetaInterface rowMeta,
Object[] row)
throws org.pentaho.di.core.exception.KettleException
PartitionerrowMeta - the row metarow - the rorg.pentaho.di.core.exception.KettleException - the kettle exceptionpublic String getDescription()
PartitionergetDescription in interface PartitionergetDescription in class BasePartitionerpublic String getXML()
Partitionerpublic void loadXML(Node partitioningMethodNode) throws org.pentaho.di.core.exception.KettleXMLException
PartitionerpartitioningMethodNode - the partitioning method nodeorg.pentaho.di.core.exception.KettleXMLException - the kettle xml exceptionpublic void saveRep(Repository rep, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step) throws org.pentaho.di.core.exception.KettleException
Partitionerrep - the repository to save inid_transformation - the ID of the transformationid_step - the ID of the steporg.pentaho.di.core.exception.KettleException - In case anything goes wrongpublic void loadRep(Repository rep, org.pentaho.di.repository.ObjectId id_step) throws org.pentaho.di.core.exception.KettleException
Partitionerrep - the repid_step - the id_steporg.pentaho.di.core.exception.KettleException - the kettle exceptionpublic String getFieldName()
public void setFieldName(String fieldName)