Package hec.lang
Class Const
java.lang.Object
hec.lang.Const
- All Implemented Interfaces:
Serializable
This class contains special constants used for setting undefined data
values. Several static methods allow testing for and returning the
undefined value.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final int[]static final String[]static final doublestatic final floatstatic final intstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetOverrideProtection(String rule) static StringgetRule(int num) static intgetRuleNumber(String rule) static booleangetSystemIrregularOverrideProtection(String namedPropertyKey) static booleangetSystemIrregularOverrideProtection(String namedPropertyKey, boolean defaultOverrideProtection) static StringgetSystemIrregularStoreRule(String namedPropertyKey) static StringgetSystemIrregularStoreRule(String namedPropertyKey, String defaultStoreRule) static booleangetSystemRegularOverrideProtection(String namedPropertyKey) static booleangetSystemRegularOverrideProtection(String namedPropertyKey, boolean defaultOverrideProtection) static StringgetSystemRegularStoreRule(String namedPropertyKey) static StringgetSystemRegularStoreRule(String namedPropertyKey, String defaultStoreRule) static doublegetUndefinedFromPracticallyUndefined(double x) Return the true UNDEFINED value for a double that is numerically close to it.static floatgetUndefinedFromPracticallyUndefined(float x) Return the true UNDEFINED value for a float that is numerically close to it.static booleanisDefined(double x) static booleanisDefined(float x) static booleanisDefined(int x) static booleanisDefined(long x) static booleanisNotValid(double x) static booleanisNotValid(float x) static booleanisNotValid(int x) static booleanisNotValid(long x) static booleanisPracticallyUndefined(double x) static booleanisPracticallyUndefined(float x) The "isPracticallyUndefined" methods are for dealing with externally undefined values that only approximate the exact Java float or double UNDEFINED representation.static booleanisUndefined(double x) static booleanisUndefined(float x) static booleanisUndefined(int x) static booleanisUndefined(long x) static booleanisValid(double x) static booleanisValid(float x) static booleanisValid(int x) static booleanisValid(long x)
-
Field Details
-
UNDEFINED_FLOAT
public static final float UNDEFINED_FLOAT- See Also:
-
UNDEFINED_DOUBLE
public static final double UNDEFINED_DOUBLE- See Also:
-
UNDEFINED_INT
public static final int UNDEFINED_INT- See Also:
-
UNDEFINED_LONG
public static final long UNDEFINED_LONG- See Also:
-
UNDEFINED_TIME
public static final long UNDEFINED_TIME- See Also:
-
DELETE_INSERT
public static final int DELETE_INSERT- See Also:
-
REPLACE_ALL
public static final int REPLACE_ALL- See Also:
-
DO_NOT_REPLACE
public static final int DO_NOT_REPLACE- See Also:
-
REPLACE_MISSING_VALUES_ONLY
public static final int REPLACE_MISSING_VALUES_ONLY- See Also:
-
REPLACE_WITH_NON_MISSING
public static final int REPLACE_WITH_NON_MISSING- See Also:
-
Delete_Insert
- See Also:
-
Replace_All
- See Also:
-
Do_Not_Replace
- See Also:
-
Replace_Missing_Values_Only
- See Also:
-
Replace_With_Non_Missing
- See Also:
-
Override_Protection
- See Also:
-
RULES
-
RULE_NUMBERS
public static final int[] RULE_NUMBERS
-
-
Constructor Details
-
Const
public Const()
-
-
Method Details
-
getRuleNumber
-
getOverrideProtection
-
getRule
-
isDefined
public static boolean isDefined(float x) -
isUndefined
public static boolean isUndefined(float x) -
isValid
public static boolean isValid(float x) -
isNotValid
public static boolean isNotValid(float x) -
isDefined
public static boolean isDefined(double x) -
isUndefined
public static boolean isUndefined(double x) -
isValid
public static boolean isValid(double x) -
isNotValid
public static boolean isNotValid(double x) -
isDefined
public static boolean isDefined(int x) -
isUndefined
public static boolean isUndefined(int x) -
isValid
public static boolean isValid(int x) -
isNotValid
public static boolean isNotValid(int x) -
isDefined
public static boolean isDefined(long x) -
isUndefined
public static boolean isUndefined(long x) -
isValid
public static boolean isValid(long x) -
isNotValid
public static boolean isNotValid(long x) -
isPracticallyUndefined
public static boolean isPracticallyUndefined(float x) The "isPracticallyUndefined" methods are for dealing with externally undefined values that only approximate the exact Java float or double UNDEFINED representation. They would be used at the time the external representation is received from the data base to immediately reset the value correctly before it becomes part of the data set. -
isPracticallyUndefined
public static boolean isPracticallyUndefined(double x) -
getUndefinedFromPracticallyUndefined
public static float getUndefinedFromPracticallyUndefined(float x) Return the true UNDEFINED value for a float that is numerically close to it. -
getUndefinedFromPracticallyUndefined
public static double getUndefinedFromPracticallyUndefined(double x) Return the true UNDEFINED value for a double that is numerically close to it. -
getSystemRegularOverrideProtection
-
getSystemIrregularOverrideProtection
-
getSystemRegularOverrideProtection
public static boolean getSystemRegularOverrideProtection(String namedPropertyKey, boolean defaultOverrideProtection) -
getSystemIrregularOverrideProtection
public static boolean getSystemIrregularOverrideProtection(String namedPropertyKey, boolean defaultOverrideProtection) -
getSystemIrregularStoreRule
-
getSystemRegularStoreRule
-
getSystemIrregularStoreRule
-
getSystemRegularStoreRule
-