spark.core.config_validation#
Classes#
Base class for validators for the fields in a SparkConfig. |
|
Validates the type of the field against a set of valid_types defined in the metadata. |
|
Validates that the value(s) of the attribute are greater than zero. |
|
Validates that the value(s) of the attribute are in the set {0,1}. |
|
Validates that the value(s) of the attribute are in the range [0,1]. |
Module Contents#
- class spark.core.config_validation.ConfigurationValidator(field)[source]#
Base class for validators for the fields in a SparkConfig.
- Parameters:
field (dataclasses.Field)
- class spark.core.config_validation.TypeValidator(field)[source]#
Bases:
ConfigurationValidatorValidates the type of the field against a set of valid_types defined in the metadata.
- Parameters:
field (dataclasses.Field)
- class spark.core.config_validation.PositiveValidator(field)[source]#
Bases:
ConfigurationValidatorValidates that the value(s) of the attribute are greater than zero.
- Parameters:
field (dataclasses.Field)
- class spark.core.config_validation.BinaryValidator(field)[source]#
Bases:
ConfigurationValidatorValidates that the value(s) of the attribute are in the set {0,1}.
- Parameters:
field (dataclasses.Field)
- class spark.core.config_validation.ZeroOneValidator(field)[source]#
Bases:
ConfigurationValidatorValidates that the value(s) of the attribute are in the range [0,1].
- Parameters:
field (dataclasses.Field)