Module datarush.analytics
Enum ReplaceSpecification.Action
- java.lang.Object
-
- java.lang.Enum<ReplaceSpecification.Action>
-
- com.pervasive.datarush.analytics.cleansing.ReplaceSpecification.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<ReplaceSpecification.Action>
- 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 Summary
Enum Constants Enum Constant Description NONE
No action required.REPLACE_CONSTANT
Replace the missing value with a constant value.REPLACE_MAX
Replace the missing value with the maximum value found for this field in the data.REPLACE_MEAN
Replace the missing value with the mean value calculated for this field in the data.REPLACE_MEDIAN
Replace the missing value with the median value calculated for this field in the data.REPLACE_MIN
Replace the missing value with the minimum value found 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.SKIP_RECORD
Skip the record.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTypeSupported(ScalarTokenType type)
Returns whether this action supports the given field typestatic ReplaceSpecification.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReplaceSpecification.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
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 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 nameNullPointerException
- 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
-
-