Interface Constraint
-
- All Known Implementing Classes:
UniqueConstraint
@Deprecated @Internal public interface Constraint
Deprecated.SeeResolvedSchemaandConstraint.Integrity constraints, generally referred to simply as constraints, define the valid states of SQL-data by constraining the values in the base tables.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConstraint.ConstraintTypeDeprecated.Type of the constraint.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringasSummaryString()Deprecated.Prints the constraint in a readable way.StringgetName()Deprecated.Constraint.ConstraintTypegetType()Deprecated.Tells what kind of constraint it is, e.g.booleanisEnforced()Deprecated.Constraints can either be enforced or non-enforced.
-
-
-
Method Detail
-
getName
String getName()
Deprecated.
-
isEnforced
boolean isEnforced()
Deprecated.Constraints can either be enforced or non-enforced. If a constraint is enforced it will be checked whenever any SQL statement is executed that results in data or schema changes. If the constraint is not enforced the owner of the data is responsible for ensuring data integrity. Flink will rely the information is valid and might use it for query optimisations.
-
getType
Constraint.ConstraintType getType()
Deprecated.Tells what kind of constraint it is, e.g. PRIMARY KEY, UNIQUE, ...
-
asSummaryString
String asSummaryString()
Deprecated.Prints the constraint in a readable way.
-
-