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, setNrPartitionspublic Partitioner getInstance()
PartitionergetInstance in interface PartitionergetInstance in class BasePartitionerpublic ModPartitioner clone()
Partitionerclone in interface Partitionerclone in class BasePartitionerpublic String getDialogClassName()
Partitionerpublic int getPartition(RowMetaInterface rowMeta, Object[] row) throws KettleException
PartitionerrowMeta - the row metarow - the rKettleException - the kettle exceptionpublic String getDescription()
PartitionergetDescription in interface PartitionergetDescription in class BasePartitionerpublic String getXML()
Partitionerpublic void loadXML(Node partitioningMethodNode) throws KettleXMLException
PartitionerpartitioningMethodNode - the partitioning method nodeKettleXMLException - the kettle xml exceptionpublic void saveRep(Repository rep, ObjectId id_transformation, ObjectId id_step) throws KettleException
Partitionerrep - 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
Partitionerrep - the repid_step - the id_stepKettleException - the kettle exceptionpublic String getFieldName()
public void setFieldName(String fieldName)
Copyright © 2018 Hitachi Vantara. All rights reserved.