Package com.illumon.iris.validation
Enum TableValidationMode
- All Implemented Interfaces:
Serializable
,Comparable<TableValidationMode>
,java.lang.constant.Constable
public enum TableValidationMode extends Enum<TableValidationMode>
Mode used to validate a table.
The mode on individual tests can be set using
TableValidationMode_FullDatabase
or
TableValidationMode_SimpleTable
.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description FULL_DATABASE
Validate a complete multi-partition historical table from the database.FULL_INTRADAY
Validate a full intraday table.SIMPLE_TABLE
Validate a simple leaf-node table. -
Method Summary
Modifier and Type Method Description abstract String
getModeName()
Provide a user-friendly name that can be added to log messages and exceptions.abstract boolean
isFullMode()
Indicate whether this is a full database mode.static TableValidationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TableValidationMode[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
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
-