public static class ConstraintEnforcer.Builder extends Object
ConstraintEnforcer can be instantiated with only the NOT
NULL constraint validation, only the CHAR/VARCHAR length validation, only the
BINARY/VARBINARY length validation or combinations of them, or all of them.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryLengthConstraint(org.apache.flink.table.api.config.ExecutionConfigOptions.TypeLengthEnforcer typeLengthEnforcer,
List<ConstraintEnforcer.FieldInfo> binaryFieldInfo,
List<String> binaryFieldNames,
String[] allFieldNames) |
void |
addCharLengthConstraint(org.apache.flink.table.api.config.ExecutionConfigOptions.TypeLengthEnforcer typeLengthEnforcer,
List<ConstraintEnforcer.FieldInfo> charFieldInfo,
List<String> charFieldNames,
String[] allFieldNames) |
void |
addNotNullConstraint(org.apache.flink.table.api.config.ExecutionConfigOptions.NotNullEnforcer notNullEnforcer,
int[] notNullFieldIndices,
List<String> notNullFieldNames,
String[] allFieldNames) |
ConstraintEnforcer |
build()
If neither of NOT NULL or CHAR/VARCHAR length or BINARY/VARBINARY enforcers are
configured, null is returned.
|
public void addNotNullConstraint(org.apache.flink.table.api.config.ExecutionConfigOptions.NotNullEnforcer notNullEnforcer,
int[] notNullFieldIndices,
List<String> notNullFieldNames,
String[] allFieldNames)
public void addCharLengthConstraint(org.apache.flink.table.api.config.ExecutionConfigOptions.TypeLengthEnforcer typeLengthEnforcer,
List<ConstraintEnforcer.FieldInfo> charFieldInfo,
List<String> charFieldNames,
String[] allFieldNames)
public void addBinaryLengthConstraint(org.apache.flink.table.api.config.ExecutionConfigOptions.TypeLengthEnforcer typeLengthEnforcer,
List<ConstraintEnforcer.FieldInfo> binaryFieldInfo,
List<String> binaryFieldNames,
String[] allFieldNames)
public ConstraintEnforcer build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.