public abstract class BasePartitioner extends Object implements Partitioner
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected String |
id |
protected StepPartitioningMeta |
meta |
protected int |
nrPartitions |
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(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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDialogClassName, getPartition, getXML, loadRep, loadXML, saveRep
protected StepPartitioningMeta meta
protected int nrPartitions
protected String id
protected String description
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(RowMetaInterface rowMeta) throws KettleException
rowMeta
- the row metaKettleException
- 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 idCopyright © 2018 Hitachi Vantara. All rights reserved.