Module datarush.analytics
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
The action to take when a missing value is discovered within a field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo action required.Replace the missing value with a constant value.Replace the missing value with the maximum value found for this field in the data.Replace the missing value with the mean value calculated for this field in the data.Replace the missing value with the median value calculated for this field in the data.Replace the missing value with the minimum value found for this field in the data.Replace the missing value with the most frequent value found for this field in the data.Skip the record. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this action supports the given field typestatic ReplaceSpecification.ActionReturns the enum constant of this class with the specified name.static ReplaceSpecification.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No action required. The input value is pushed to the output. This is the default action. -
SKIP_RECORD
Skip the record. The record is not written to the output. -
REPLACE_MAX
Replace the missing value with the maximum value found for this field in the data. -
REPLACE_MIN
Replace the missing value with the minimum value found for this field in the data. -
REPLACE_MEDIAN
Replace the missing value with the median value calculated for this field in the data. -
REPLACE_MEAN
Replace the missing value with the mean value calculated for this field in the data. -
REPLACE_MOST_FREQ
Replace the missing value with the most frequent value found for this field in the data. -
REPLACE_CONSTANT
Replace the missing value with a constant value.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isTypeSupported
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
-