Package io.trino.hive.thrift.metastore
Class ThriftHiveMetastore.create_table_with_constraints_args
java.lang.Object
io.trino.hive.thrift.metastore.ThriftHiveMetastore.create_table_with_constraints_args
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ThriftHiveMetastore.create_table_with_constraints_args>,org.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,,ThriftHiveMetastore.create_table_with_constraints_args._Fields> org.apache.thrift.TSerializable
- Enclosing class:
- ThriftHiveMetastore
public static class ThriftHiveMetastore.create_table_with_constraints_args
extends Object
implements org.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>, Serializable, Cloneable, Comparable<ThriftHiveMetastore.create_table_with_constraints_args>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<ThriftHiveMetastore.create_table_with_constraints_args._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptioncreate_table_with_constraints_args(Table tbl, List<SQLPrimaryKey> primaryKeys, List<SQLForeignKey> foreignKeys, List<SQLUniqueConstraint> uniqueConstraints, List<SQLNotNullConstraint> notNullConstraints, List<SQLDefaultConstraint> defaultConstraints, List<SQLCheckConstraint> checkConstraints) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) intintintintintgetTbl()intinthashCode()booleanReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field checkConstraints is set (has been assigned a value) and false otherwisebooleanReturns true if field defaultConstraints is set (has been assigned a value) and false otherwisebooleanReturns true if field foreignKeys is set (has been assigned a value) and false otherwisebooleanReturns true if field notNullConstraints is set (has been assigned a value) and false otherwisebooleanReturns true if field primaryKeys is set (has been assigned a value) and false otherwisebooleanisSetTbl()Returns true if field tbl is set (has been assigned a value) and false otherwisebooleanReturns true if field uniqueConstraints is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setCheckConstraints(List<SQLCheckConstraint> checkConstraints) voidsetCheckConstraintsIsSet(boolean value) setDefaultConstraints(List<SQLDefaultConstraint> defaultConstraints) voidsetDefaultConstraintsIsSet(boolean value) voidsetForeignKeys(List<SQLForeignKey> foreignKeys) voidsetForeignKeysIsSet(boolean value) setNotNullConstraints(List<SQLNotNullConstraint> notNullConstraints) voidsetNotNullConstraintsIsSet(boolean value) setPrimaryKeys(List<SQLPrimaryKey> primaryKeys) voidsetPrimaryKeysIsSet(boolean value) voidsetTblIsSet(boolean value) setUniqueConstraints(List<SQLUniqueConstraint> uniqueConstraints) voidsetUniqueConstraintsIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidunsetTbl()voidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<ThriftHiveMetastore.create_table_with_constraints_args._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
create_table_with_constraints_args
public create_table_with_constraints_args() -
create_table_with_constraints_args
public create_table_with_constraints_args(Table tbl, List<SQLPrimaryKey> primaryKeys, List<SQLForeignKey> foreignKeys, List<SQLUniqueConstraint> uniqueConstraints, List<SQLNotNullConstraint> notNullConstraints, List<SQLDefaultConstraint> defaultConstraints, List<SQLCheckConstraint> checkConstraints) -
create_table_with_constraints_args
public create_table_with_constraints_args(ThriftHiveMetastore.create_table_with_constraints_args other) Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>
-
getTbl
-
setTbl
-
unsetTbl
public void unsetTbl() -
isSetTbl
public boolean isSetTbl()Returns true if field tbl is set (has been assigned a value) and false otherwise -
setTblIsSet
public void setTblIsSet(boolean value) -
getPrimaryKeysSize
public int getPrimaryKeysSize() -
getPrimaryKeysIterator
-
addToPrimaryKeys
-
getPrimaryKeys
-
setPrimaryKeys
public ThriftHiveMetastore.create_table_with_constraints_args setPrimaryKeys(List<SQLPrimaryKey> primaryKeys) -
unsetPrimaryKeys
public void unsetPrimaryKeys() -
isSetPrimaryKeys
public boolean isSetPrimaryKeys()Returns true if field primaryKeys is set (has been assigned a value) and false otherwise -
setPrimaryKeysIsSet
public void setPrimaryKeysIsSet(boolean value) -
getForeignKeysSize
public int getForeignKeysSize() -
getForeignKeysIterator
-
addToForeignKeys
-
getForeignKeys
-
setForeignKeys
public ThriftHiveMetastore.create_table_with_constraints_args setForeignKeys(List<SQLForeignKey> foreignKeys) -
unsetForeignKeys
public void unsetForeignKeys() -
isSetForeignKeys
public boolean isSetForeignKeys()Returns true if field foreignKeys is set (has been assigned a value) and false otherwise -
setForeignKeysIsSet
public void setForeignKeysIsSet(boolean value) -
getUniqueConstraintsSize
public int getUniqueConstraintsSize() -
getUniqueConstraintsIterator
-
addToUniqueConstraints
-
getUniqueConstraints
-
setUniqueConstraints
public ThriftHiveMetastore.create_table_with_constraints_args setUniqueConstraints(List<SQLUniqueConstraint> uniqueConstraints) -
unsetUniqueConstraints
public void unsetUniqueConstraints() -
isSetUniqueConstraints
public boolean isSetUniqueConstraints()Returns true if field uniqueConstraints is set (has been assigned a value) and false otherwise -
setUniqueConstraintsIsSet
public void setUniqueConstraintsIsSet(boolean value) -
getNotNullConstraintsSize
public int getNotNullConstraintsSize() -
getNotNullConstraintsIterator
-
addToNotNullConstraints
-
getNotNullConstraints
-
setNotNullConstraints
public ThriftHiveMetastore.create_table_with_constraints_args setNotNullConstraints(List<SQLNotNullConstraint> notNullConstraints) -
unsetNotNullConstraints
public void unsetNotNullConstraints() -
isSetNotNullConstraints
public boolean isSetNotNullConstraints()Returns true if field notNullConstraints is set (has been assigned a value) and false otherwise -
setNotNullConstraintsIsSet
public void setNotNullConstraintsIsSet(boolean value) -
getDefaultConstraintsSize
public int getDefaultConstraintsSize() -
getDefaultConstraintsIterator
-
addToDefaultConstraints
-
getDefaultConstraints
-
setDefaultConstraints
public ThriftHiveMetastore.create_table_with_constraints_args setDefaultConstraints(List<SQLDefaultConstraint> defaultConstraints) -
unsetDefaultConstraints
public void unsetDefaultConstraints() -
isSetDefaultConstraints
public boolean isSetDefaultConstraints()Returns true if field defaultConstraints is set (has been assigned a value) and false otherwise -
setDefaultConstraintsIsSet
public void setDefaultConstraintsIsSet(boolean value) -
getCheckConstraintsSize
public int getCheckConstraintsSize() -
getCheckConstraintsIterator
-
addToCheckConstraints
-
getCheckConstraints
-
setCheckConstraints
public ThriftHiveMetastore.create_table_with_constraints_args setCheckConstraints(List<SQLCheckConstraint> checkConstraints) -
unsetCheckConstraints
public void unsetCheckConstraints() -
isSetCheckConstraints
public boolean isSetCheckConstraints()Returns true if field checkConstraints is set (has been assigned a value) and false otherwise -
setCheckConstraintsIsSet
public void setCheckConstraintsIsSet(boolean value) -
setFieldValue
public void setFieldValue(ThriftHiveMetastore.create_table_with_constraints_args._Fields field, Object value) - Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ThriftHiveMetastore.create_table_with_constraints_args>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.create_table_with_constraints_args,ThriftHiveMetastore.create_table_with_constraints_args._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-