public class SQLDefaultConstraintBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
catName |
protected String |
constraintName |
protected String |
dbName |
protected boolean |
enable |
protected boolean |
rely |
protected String |
tableName |
protected boolean |
validate |
Constructor and Description |
---|
SQLDefaultConstraintBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
addColumn(String columnName) |
List<SQLDefaultConstraint> |
build(org.apache.hadoop.conf.Configuration conf) |
protected void |
checkBuildable(String defaultConstraintName,
org.apache.hadoop.conf.Configuration conf) |
protected int |
getNextSeq() |
T |
onTable(Table table) |
T |
setCatName(String catName) |
protected void |
setChild(T child) |
T |
setConstraintName(String constraintName) |
T |
setDbName(String dbName) |
SQLDefaultConstraintBuilder |
setDefaultVal(Object defaultVal) |
T |
setEnable(boolean enable) |
T |
setRely(boolean rely) |
T |
setTableName(String tableName) |
T |
setValidate(boolean validate) |
protected String catName
protected String dbName
protected String tableName
protected String constraintName
protected boolean enable
protected boolean validate
protected boolean rely
public SQLDefaultConstraintBuilder setDefaultVal(Object defaultVal)
public List<SQLDefaultConstraint> build(org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaException
protected void setChild(T child)
protected void checkBuildable(String defaultConstraintName, org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaException
protected int getNextSeq()
public T setCatName(String catName)
public T setDbName(String dbName)
public T setTableName(String tableName)
public T onTable(Table table)
public T addColumn(String columnName)
public T setConstraintName(String constraintName)
public T setEnable(boolean enable)
public T setValidate(boolean validate)
public T setRely(boolean rely)
Copyright © 2022 The Apache Software Foundation. All rights reserved.