org.pentaho.di.trans
Class BasePartitioner

java.lang.Object
  extended by org.pentaho.di.trans.BasePartitioner
All Implemented Interfaces:
Partitioner
Direct Known Subclasses:
ModPartitioner

public abstract class BasePartitioner
extends Object
implements Partitioner

Implements common functionality needed by partitioner plugins.


Constructor Summary
BasePartitioner()
          Instantiates a new base partitioner.
 
Method Summary
 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(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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.di.trans.Partitioner
getDialogClassName, getPartition, getXML, loadRep, loadXML, saveRep
 

Constructor Detail

BasePartitioner

public BasePartitioner()
Instantiates a new base partitioner.

Method Detail

clone

public Partitioner clone()
Description copied from interface: Partitioner
Clone.

Specified by:
clone in interface Partitioner
Overrides:
clone in class Object
Returns:
the partitioner

getNrPartitions

public int getNrPartitions()
Gets the nr partitions.

Returns:
the nr partitions

setNrPartitions

public void setNrPartitions(int nrPartitions)
Sets the nr partitions.

Parameters:
nrPartitions - the new nr partitions

init

public void init(RowMetaInterface rowMeta)
          throws KettleException
Inits the.

Parameters:
rowMeta - the row meta
Throws:
KettleException - the kettle exception

getMeta

public StepPartitioningMeta getMeta()
Gets the meta.

Returns:
the meta

setMeta

public void setMeta(StepPartitioningMeta meta)
Description copied from interface: Partitioner
Sets the meta.

Specified by:
setMeta in interface Partitioner
Parameters:
meta - the new meta

getInstance

public abstract Partitioner getInstance()
Description copied from interface: Partitioner
Gets the single instance of Partitioner.

Specified by:
getInstance in interface Partitioner
Returns:
single instance of Partitioner

getDescription

public String getDescription()
Description copied from interface: Partitioner
Gets the description.

Specified by:
getDescription in interface Partitioner
Returns:
the description

setDescription

public void setDescription(String description)
Description copied from interface: Partitioner
Sets the description.

Specified by:
setDescription in interface Partitioner
Parameters:
description - the new description

getId

public String getId()
Description copied from interface: Partitioner
Gets the id.

Specified by:
getId in interface Partitioner
Returns:
the id

setId

public void setId(String id)
Description copied from interface: Partitioner
Sets the id.

Specified by:
setId in interface Partitioner
Parameters:
id - the new id