Enum ReplaceSpecification.Action

    • Enum Constant Detail

      • NONE

        public static final ReplaceSpecification.Action NONE
        No action required. The input value is pushed to the output. This is the default action.
      • REPLACE_MAX

        public static final ReplaceSpecification.Action REPLACE_MAX
        Replace the missing value with the maximum value found for this field in the data.
      • REPLACE_MIN

        public static final ReplaceSpecification.Action REPLACE_MIN
        Replace the missing value with the minimum value found for this field in the data.
      • REPLACE_MEDIAN

        public static final ReplaceSpecification.Action REPLACE_MEDIAN
        Replace the missing value with the median value calculated for this field in the data.
      • REPLACE_MEAN

        public static final ReplaceSpecification.Action REPLACE_MEAN
        Replace the missing value with the mean value calculated for this field in the data.
      • REPLACE_MOST_FREQ

        public static final ReplaceSpecification.Action REPLACE_MOST_FREQ
        Replace the missing value with the most frequent value found for this field in the data.
    • Method Detail

      • values

        public static ReplaceSpecification.Action[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ReplaceSpecification.Action c : ReplaceSpecification.Action.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReplaceSpecification.Action valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isTypeSupported

        public boolean isTypeSupported​(ScalarTokenType type)
        Returns whether this action supports the given field type
        Parameters:
        type - token type to test for compatibility
        Returns:
        whether this action supports the given field type