Package com.dataai.etl.spark.api
Record Class RuleSpec
java.lang.Object
java.lang.Record
com.dataai.etl.spark.api.RuleSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleSpecstatic RuleSpecdateFormat(String id, String field, String sparkDateFormat) final booleanIndicates whether some other object is "equal to" this one.static RuleSpecequalsValue(String id, String field, String expectedValue) field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static RuleSpecstatic RuleSpecstatic RuleSpecstatic RuleSpecReturns the value of theparameterrecord component.static RuleSpecstatic RuleSpecseverity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static RuleSpec
-
Constructor Details
-
RuleSpec
Creates an instance of aRuleSpecrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentfield- the value for thefieldrecord componentparameter- the value for theparameterrecord componentseverity- the value for theseverityrecord component
-
-
Method Details
-
required
-
unique
-
minimum
-
maximum
-
between
-
inSet
-
dateFormat
-
length
-
equalsValue
-
regex
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
parameter
Returns the value of theparameterrecord component.- Returns:
- the value of the
parameterrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-