Package org.pentaho.di.trans
Class BasePartitioner
java.lang.Object
org.pentaho.di.trans.BasePartitioner
- All Implemented Interfaces:
Partitioner
- Direct Known Subclasses:
ModPartitioner
Implements common functionality needed by partitioner plugins.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected StepPartitioningMeta
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone.Gets the description.getId()
Gets the id.abstract Partitioner
Gets the single instance of Partitioner.getMeta()
Gets the meta.int
Gets the nr partitions.void
init
(org.pentaho.di.core.row.RowMetaInterface rowMeta) Inits the.void
setDescription
(String description) Sets the description.void
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, 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 Details
-
meta
-
nrPartitions
protected int nrPartitions -
id
-
description
-
-
Constructor Details
-
BasePartitioner
public BasePartitioner()Instantiates a new base partitioner.
-
-
Method Details
-
clone
Description copied from interface:Partitioner
Clone.- Specified by:
clone
in interfacePartitioner
- Overrides:
clone
in 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.KettleException Inits the.- Parameters:
rowMeta
- the row meta- Throws:
org.pentaho.di.core.exception.KettleException
- the kettle exception
-
getMeta
Gets the meta.- Returns:
- the meta
-
setMeta
Description copied from interface:Partitioner
Sets the meta.- Specified by:
setMeta
in interfacePartitioner
- Parameters:
meta
- the new meta
-
getInstance
Description copied from interface:Partitioner
Gets the single instance of Partitioner.- Specified by:
getInstance
in interfacePartitioner
- Returns:
- single instance of Partitioner
-
getDescription
Description copied from interface:Partitioner
Gets the description.- Specified by:
getDescription
in interfacePartitioner
- Returns:
- the description
-
setDescription
Description copied from interface:Partitioner
Sets the description.- Specified by:
setDescription
in interfacePartitioner
- Parameters:
description
- the new description
-
getId
Description copied from interface:Partitioner
Gets the id.- Specified by:
getId
in interfacePartitioner
- Returns:
- the id
-
setId
Description copied from interface:Partitioner
Sets the id.- Specified by:
setId
in interfacePartitioner
- Parameters:
id
- the new id
-