java.lang.Object
com.pervasive.datarush.ports.record.DataDistribution
com.pervasive.datarush.ports.record.PartialDataDistribution
com.pervasive.datarush.ports.record.PartialStaticDataDistribution
com.pervasive.datarush.ports.record.BalancedDistribution
Used to redistribute the data in a roughly balanced fashion. Data from
all partitions is round-robin partitioned to all other partitions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BalancedDistributionThe singleton instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionAliasSet[]Returns the fields that are referenced by this distribution.protected PartitioningFunctionSubclasses must override this method to provide the partitioning function to be usedremap(FieldRemapping mapping) Because BalancedDistribution does not reference any key names, it is not sensitive to transformations to the record namespace and thus this method just returns a reference to this, unmodified.protected booleanSubclasses must override this method to declare whether a repartition is required given the source distribution.toString()Methods inherited from class com.pervasive.datarush.ports.record.PartialStaticDataDistribution
supportsLocalRepartitionMethods inherited from class com.pervasive.datarush.ports.record.PartialDataDistribution
getGatherScheme
-
Field Details
-
INSTANCE
The singleton instance of this class.
-
-
Method Details
-
toString
- Specified by:
toStringin classDataDistribution
-
remap
Because BalancedDistribution does not reference any key names, it is not sensitive to transformations to the record namespace and thus this method just returns a reference to this, unmodified.- Specified by:
remapin classDataDistribution- Parameters:
mapping- the field remapping.- Returns:
- this distribution, unmodified
-
requiresRepartitionFrom
Description copied from class:PartialStaticDataDistributionSubclasses 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.- Specified by:
requiresRepartitionFromin classPartialStaticDataDistribution- Parameters:
source- the source distribution- Returns:
- true if a repartition is required, false if this data distribution matches what was specified.
-
getAliases
Description copied from class:DataDistributionReturns the fields that are referenced by this distribution. Note that it is valid for a distribution to reference no fields, in which case it should return an empty array. This method is used by the framework to validate the distribution is consistent with the type of the record.- Specified by:
getAliasesin classDataDistribution- Returns:
- the fields that are referenced by this distribution
-
getPartitioningFunction
Description copied from class:PartialStaticDataDistributionSubclasses must override this method to provide the partitioning function to be used- Specified by:
getPartitioningFunctionin classPartialStaticDataDistribution- Returns:
- a partition function
-