Package org.pentaho.di.trans
Class BasePartitioner
- java.lang.Object
-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected Stringidprotected StepPartitioningMetametaprotected intnrPartitions
-
Constructor Summary
Constructors Constructor Description BasePartitioner()Instantiates a new base partitioner.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Partitionerclone()Clone.StringgetDescription()Gets the description.StringgetId()Gets the id.abstract PartitionergetInstance()Gets the single instance of Partitioner.StepPartitioningMetagetMeta()Gets the meta.intgetNrPartitions()Gets the nr partitions.voidinit(org.pentaho.di.core.row.RowMetaInterface rowMeta)Inits the.voidsetDescription(String description)Sets the description.voidsetId(String id)Sets the id.voidsetMeta(StepPartitioningMeta meta)Sets the meta.voidsetNrPartitions(int nrPartitions)Sets the nr partitions.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.trans.Partitioner
getDialogClassName, getPartition, getXML, loadRep, loadXML, saveRep
-
-
-
-
Field Detail
-
meta
protected StepPartitioningMeta meta
-
nrPartitions
protected int nrPartitions
-
id
protected String id
-
description
protected String description
-
-
Method Detail
-
clone
public Partitioner clone()
Description copied from interface:PartitionerClone.- Specified by:
clonein interfacePartitioner- Overrides:
clonein classObject- 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(org.pentaho.di.core.row.RowMetaInterface rowMeta) throws org.pentaho.di.core.exception.KettleExceptionInits the.- Parameters:
rowMeta- the row meta- Throws:
org.pentaho.di.core.exception.KettleException- the kettle exception
-
getMeta
public StepPartitioningMeta getMeta()
Gets the meta.- Returns:
- the meta
-
setMeta
public void setMeta(StepPartitioningMeta meta)
Description copied from interface:PartitionerSets the meta.- Specified by:
setMetain interfacePartitioner- Parameters:
meta- the new meta
-
getInstance
public abstract Partitioner getInstance()
Description copied from interface:PartitionerGets the single instance of Partitioner.- Specified by:
getInstancein interfacePartitioner- Returns:
- single instance of Partitioner
-
getDescription
public String getDescription()
Description copied from interface:PartitionerGets the description.- Specified by:
getDescriptionin interfacePartitioner- Returns:
- the description
-
setDescription
public void setDescription(String description)
Description copied from interface:PartitionerSets the description.- Specified by:
setDescriptionin interfacePartitioner- Parameters:
description- the new description
-
getId
public String getId()
Description copied from interface:PartitionerGets the id.- Specified by:
getIdin interfacePartitioner- Returns:
- the id
-
setId
public void setId(String id)
Description copied from interface:PartitionerSets the id.- Specified by:
setIdin interfacePartitioner- Parameters:
id- the new id
-
-