Module datarush.library
Class PartialStaticDataDistribution
java.lang.Object
com.pervasive.datarush.ports.record.DataDistribution
com.pervasive.datarush.ports.record.PartialDataDistribution
com.pervasive.datarush.ports.record.PartialStaticDataDistribution
- Direct Known Subclasses:
BalancedDistribution,KeyDrivenDataDistribution,UnspecifiedPartialDistribution
Base class for all distributions whose partitioning parameters are specified statically.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PartitioningFunctionSubclasses must override this method to provide the partitioning function to be usedprotected abstract booleanSubclasses must override this method to declare whether a repartition is required given the source distribution.protected booleanSubclasses may override to indicate that they support a local repartitionMethods inherited from class com.pervasive.datarush.ports.record.PartialDataDistribution
getGatherSchemeMethods inherited from class com.pervasive.datarush.ports.record.DataDistribution
getAliases, remap, toString
-
Constructor Details
-
PartialStaticDataDistribution
protected PartialStaticDataDistribution()Default constructor.
-
-
Method Details
-
supportsLocalRepartition
protected boolean supportsLocalRepartition()Subclasses may override to indicate that they support a local repartition- Returns:
-
getPartitioningFunction
Subclasses must override this method to provide the partitioning function to be used- Returns:
- a partition function
-
requiresRepartitionFrom
Subclasses must override this method to declare whether a repartition is required given the source distribution. Implementations may err on the side of caution by always returning true but this may have an impact on performance.- Parameters:
source- the source distribution- Returns:
- true if a repartition is required, false if this data distribution matches what was specified.
-