Enum Class ReplaceSpecification.Action

java.lang.Object
java.lang.Enum<ReplaceSpecification.Action>
com.pervasive.datarush.analytics.cleansing.ReplaceSpecification.Action
All Implemented Interfaces:
Serializable, Comparable<ReplaceSpecification.Action>, java.lang.constant.Constable
Enclosing class:
ReplaceSpecification

public static enum ReplaceSpecification.Action extends Enum<ReplaceSpecification.Action>
The action to take when a missing value is discovered within a field.
  • Enum Constant Details

    • NONE

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

      public static final ReplaceSpecification.Action SKIP_RECORD
      Skip the record. The record is not written to the output.
    • 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.
    • REPLACE_CONSTANT

      public static final ReplaceSpecification.Action REPLACE_CONSTANT
      Replace the missing value with a constant value.
  • Method Details

    • values

      public static ReplaceSpecification.Action[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ReplaceSpecification.Action valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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