public final class ConstraintsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHECK_CONSTRAINT_PROGRAM |
public static final String CHECK_CONSTRAINT_PROGRAM
public static void processPrimaryKeys(TableName tableName, ASTNode child, List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> primaryKeys) throws SemanticException
SemanticExceptionpublic static void processPrimaryKeys(TableName tableName, ASTNode child, List<String> columnNames, List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> primaryKeys) throws SemanticException
SemanticExceptionpublic static void processUniqueConstraints(TableName tableName, ASTNode child, List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> uniqueConstraints) throws SemanticException
SemanticExceptionpublic static void processUniqueConstraints(TableName tableName, ASTNode child, List<String> columnNames, List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> uniqueConstraints) throws SemanticException
SemanticExceptionpublic static void processCheckConstraints(TableName tableName, ASTNode child, List<String> columnNames, List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints, ASTNode typeChild, org.antlr.runtime.TokenRewriteStream tokenRewriteStream) throws SemanticException
SemanticExceptionpublic static void processDefaultConstraints(TableName tableName, ASTNode child, List<String> columnNames, List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> defaultConstraints, ASTNode typeChild, org.antlr.runtime.TokenRewriteStream tokenRewriteStream) throws SemanticException
SemanticExceptionpublic static void processNotNullConstraints(TableName tableName, ASTNode child, List<String> columnNames, List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> notNullConstraints) throws SemanticException
SemanticExceptionpublic static void processForeignKeys(TableName tableName, ASTNode node, List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> foreignKeys) throws SemanticException
SemanticExceptionpublic static void validateCheckConstraint(List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns, List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints, org.apache.hadoop.conf.Configuration conf) throws SemanticException
SemanticExceptionpublic static boolean hasEnabledOrValidatedConstraints(List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> notNullConstraints, List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> defaultConstraints, List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints)
Copyright © 2024 The Apache Software Foundation. All rights reserved.