Class DataDistribution

    • Constructor Detail

      • DataDistribution

        public DataDistribution()
    • Method Detail

      • remap

        public abstract DataDistribution remap​(FieldRemapping mapping)
        Applies the given field remapping to this mapping, changing names as required. Distributions that reference keys must have their key names remapped.
        Parameters:
        mapping - the field remapping.
        Returns:
        this distribution, remapped to the new names.
      • getAliases

        public abstract AliasSet[] getAliases()
        Returns 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.
        Returns:
        the fields that are referenced by this distribution