public abstract class BasePartitioner extends Object implements Partitioner
Constructor and Description |
---|
BasePartitioner()
Instantiates a new base partitioner.
|
Modifier and Type | Method and Description |
---|---|
Partitioner |
clone()
Clone.
|
String |
getDescription()
Gets the description.
|
String |
getId()
Gets the id.
|
abstract Partitioner |
getInstance()
Gets the single instance of Partitioner.
|
StepPartitioningMeta |
getMeta()
Gets the meta.
|
int |
getNrPartitions()
Gets the nr partitions.
|
void |
init(org.pentaho.di.core.row.RowMetaInterface rowMeta)
Inits the.
|
void |
setDescription(String description)
Sets the description.
|
void |
setId(String id)
Sets the id.
|
void |
setMeta(StepPartitioningMeta meta)
Sets the meta.
|
void |
setNrPartitions(int nrPartitions)
Sets the nr partitions.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDialogClassName, getPartition, getXML, loadRep, loadXML, saveRep
public Partitioner clone()
Partitioner
clone
in interface Partitioner
clone
in class Object
public int getNrPartitions()
public void setNrPartitions(int nrPartitions)
nrPartitions
- the new nr partitionspublic void init(org.pentaho.di.core.row.RowMetaInterface rowMeta) throws org.pentaho.di.core.exception.KettleException
rowMeta
- the row metaorg.pentaho.di.core.exception.KettleException
- the kettle exceptionpublic StepPartitioningMeta getMeta()
public void setMeta(StepPartitioningMeta meta)
Partitioner
setMeta
in interface Partitioner
meta
- the new metapublic abstract Partitioner getInstance()
Partitioner
getInstance
in interface Partitioner
public String getDescription()
Partitioner
getDescription
in interface Partitioner
public void setDescription(String description)
Partitioner
setDescription
in interface Partitioner
description
- the new descriptionpublic String getId()
Partitioner
getId
in interface Partitioner
public void setId(String id)
Partitioner
setId
in interface Partitioner
id
- the new id