Package org.apache.hop.partition
Class PartitionSchema
- java.lang.Object
-
- org.apache.hop.metadata.api.HopMetadataBase
-
- org.apache.hop.partition.PartitionSchema
-
- All Implemented Interfaces:
Cloneable,IHopMetadata
public class PartitionSchema extends HopMetadataBase implements Cloneable, IHopMetadata
A partition schema allow you to partition a transform according into a number of partitions that run independendly. It allows us to "map"
-
-
Field Summary
-
Fields inherited from class org.apache.hop.metadata.api.HopMetadataBase
metadataProviderName, name
-
-
Constructor Summary
Constructors Constructor Description PartitionSchema()PartitionSchema(String name, List<String> partitionIDs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>calculatePartitionIds(IVariables variables)Objectclone()booleanequals(Object obj)StringgetNumberOfPartitions()List<String>getPartitionIDs()inthashCode()booleanisDynamicallyDefined()voidreplaceMeta(PartitionSchema partitionSchema)voidsetDynamicallyDefined(boolean dynamicallyDefined)voidsetNumberOfPartitions(String numberOfPartitions)voidsetPartitionIDs(List<String> partitionIDs)StringtoString()-
Methods inherited from class org.apache.hop.metadata.api.HopMetadataBase
getMetadataProviderName, getName, setMetadataProviderName, setName
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.hop.metadata.api.IHopMetadata
getMetadataProviderName, getName, setMetadataProviderName, setName
-
-
-
-
Method Detail
-
replaceMeta
public void replaceMeta(PartitionSchema partitionSchema)
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classHopMetadataBase
-
hashCode
public int hashCode()
- Overrides:
hashCodein classHopMetadataBase
-
calculatePartitionIds
public List<String> calculatePartitionIds(IVariables variables)
-
setPartitionIDs
public void setPartitionIDs(List<String> partitionIDs)
- Parameters:
partitionIDs- the partitionIDs to set
-
isDynamicallyDefined
public boolean isDynamicallyDefined()
- Returns:
- the dynamicallyDefined
-
setDynamicallyDefined
public void setDynamicallyDefined(boolean dynamicallyDefined)
- Parameters:
dynamicallyDefined- the dynamicallyDefined to set
-
getNumberOfPartitions
public String getNumberOfPartitions()
- Returns:
- the number of partitions
-
setNumberOfPartitions
public void setNumberOfPartitions(String numberOfPartitions)
- Parameters:
numberOfPartitions- the number of partitions to set...
-
-