public class ModPartitioner extends BasePartitioner
Modifier and Type | Field and Description |
---|---|
protected int |
partitionColumnIndex |
description, id, meta, nrPartitions
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(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) |
getId, getMeta, getNrPartitions, init, setDescription, setId, setMeta, setNrPartitions
public Partitioner getInstance()
Partitioner
getInstance
in interface Partitioner
getInstance
in class BasePartitioner
public ModPartitioner clone()
Partitioner
clone
in interface Partitioner
clone
in class BasePartitioner
public String getDialogClassName()
Partitioner
public int getPartition(RowMetaInterface rowMeta, Object[] row) throws KettleException
Partitioner
rowMeta
- the row metarow
- the rKettleException
- the kettle exceptionpublic String getDescription()
Partitioner
getDescription
in interface Partitioner
getDescription
in class BasePartitioner
public String getXML()
Partitioner
public void loadXML(Node partitioningMethodNode) throws KettleXMLException
Partitioner
partitioningMethodNode
- the partitioning method nodeKettleXMLException
- the kettle xml exceptionpublic void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
Partitioner
rep
- the repository to save inid_transformation
- the ID of the transformationid_step
- the ID of the stepKettleException
- In case anything goes wrongpublic void loadRep(Repository rep, ObjectId id_step) throws KettleException
Partitioner
rep
- the repid_step
- the id_stepKettleException
- the kettle exceptionpublic String getFieldName()
public void setFieldName(String fieldName)
Copyright © 2018 Hitachi Vantara. All rights reserved.