Class TransformPartitioningMeta
- java.lang.Object
-
- org.apache.hop.pipeline.transform.TransformPartitioningMeta
-
-
Field Summary
Fields Modifier and Type Field Description static String[]methodCodesstatic String[]methodDescriptionsstatic intPARTITIONING_METHOD_MIRRORstatic intPARTITIONING_METHOD_NONEstatic intPARTITIONING_METHOD_SPECIAL
-
Constructor Summary
Constructors Constructor Description TransformPartitioningMeta()TransformPartitioningMeta(String method, PartitionSchema partitionSchema)TransformPartitioningMeta(Node partitioningMethodNode, IHopMetadataProvider metadataProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformPartitioningMetaclone()voidcreatePartitioner(String method)booleanequals(Object obj)StringgetMethod()static StringgetMethod(String name)StringgetMethodCode()StringgetMethodDescription()intgetMethodType()static intgetMethodType(String description)intgetPartition(IVariables variables, IRowMeta rowMeta, Object[] row)IPartitionergetPartitioner()PartitionSchemagetPartitionSchema()StringgetXml()booleanhasChanged()voidhasChanged(boolean hasChanged)inthashCode()booleanisMethodMirror()booleanisPartitioned()voidsetMethod(String method)voidsetMethodType(int methodType)voidsetPartitioner(IPartitioner partitioner)voidsetPartitionSchema(PartitionSchema partitionSchema)StringtoString()
-
-
-
Field Detail
-
PARTITIONING_METHOD_NONE
public static final int PARTITIONING_METHOD_NONE
- See Also:
- Constant Field Values
-
PARTITIONING_METHOD_MIRROR
public static final int PARTITIONING_METHOD_MIRROR
- See Also:
- Constant Field Values
-
PARTITIONING_METHOD_SPECIAL
public static final int PARTITIONING_METHOD_SPECIAL
- See Also:
- Constant Field Values
-
methodCodes
public static final String[] methodCodes
-
methodDescriptions
public static final String[] methodDescriptions
-
-
Constructor Detail
-
TransformPartitioningMeta
public TransformPartitioningMeta()
-
TransformPartitioningMeta
public TransformPartitioningMeta(String method, PartitionSchema partitionSchema) throws HopPluginException
- Parameters:
method-partitionSchema-- Throws:
HopPluginException
-
TransformPartitioningMeta
public TransformPartitioningMeta(Node partitioningMethodNode, IHopMetadataProvider metadataProvider) throws HopException
- Throws:
HopException
-
-
Method Detail
-
clone
public TransformPartitioningMeta clone()
-
equals
public boolean equals(Object obj)
-
getMethodType
public int getMethodType()
- Returns:
- the partitioningMethod
-
setMethod
public void setMethod(String method) throws HopPluginException
- Parameters:
method- the partitioning method to set- Throws:
HopPluginException
-
getXml
public String getXml() throws HopException
- Throws:
HopException
-
getMethodCode
public String getMethodCode()
-
getMethodDescription
public String getMethodDescription()
-
getMethod
public String getMethod()
-
getMethodType
public static final int getMethodType(String description)
-
isPartitioned
public boolean isPartitioned()
-
getPartitionSchema
public PartitionSchema getPartitionSchema()
- Returns:
- the partitionSchema
-
setPartitionSchema
public void setPartitionSchema(PartitionSchema partitionSchema)
- Parameters:
partitionSchema- the partitionSchema to set
-
createPartitioner
public void createPartitioner(String method) throws HopPluginException
- Throws:
HopPluginException
-
isMethodMirror
public boolean isMethodMirror()
-
getPartition
public int getPartition(IVariables variables, IRowMeta rowMeta, Object[] row) throws HopException
- Throws:
HopException
-
getPartitioner
public IPartitioner getPartitioner()
-
setPartitioner
public void setPartitioner(IPartitioner partitioner)
-
hasChanged
public boolean hasChanged()
-
hasChanged
public void hasChanged(boolean hasChanged)
-
setMethodType
public void setMethodType(int methodType)
-
-