Package com.illumon.iris.validation
Enum Class TableValidationMode
- All Implemented Interfaces:
Serializable
,Comparable<TableValidationMode>
,java.lang.constant.Constable
Mode used to validate a table.
The mode on individual tests can be set using
TableValidationMode_FullDatabase
or
TableValidationMode_SimpleTable
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValidate a complete multi-partition historical table from the database.Validate a full intraday table.Validate a simple leaf-node table. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Provide a user-friendly name that can be added to log messages and exceptions.abstract boolean
Indicate whether this is a full database mode.static TableValidationMode
Returns the enum constant of this class with the specified name.static TableValidationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE_TABLE
Validate a simple leaf-node table. -
FULL_INTRADAY
Validate a full intraday table. This is based on a single table location (namespace/table name/column partition value). -
FULL_DATABASE
Validate a complete multi-partition historical table from the database. This is based on a single table location (namespace/table name/column partition 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
-
getModeName
Provide a user-friendly name that can be added to log messages and exceptions.- Returns:
- a user-friendly mode name
-
isFullMode
public abstract boolean isFullMode()Indicate whether this is a full database mode.- Returns:
- true means it's a full database mode, false means it's a simple database mode
-