Package io.trino.hive.thrift.metastore
Class Database
java.lang.Object
io.trino.hive.thrift.metastore.Database
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Database>,org.apache.thrift.TBase<Database,,Database._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class Database
extends Object
implements org.apache.thrift.TBase<Database,Database._Fields>, Serializable, Cloneable, Comparable<Database>
- 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<Database._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) getFieldValue(Database._Fields field) getName()intinthashCode()booleanisSet(Database._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field catalogName is set (has been assigned a value) and false otherwisebooleanReturns true if field description is set (has been assigned a value) and false otherwisebooleanReturns true if field locationUri is set (has been assigned a value) and false otherwisebooleanReturns true if field name is set (has been assigned a value) and false otherwisebooleanReturns true if field ownerName is set (has been assigned a value) and false otherwisebooleanReturns true if field ownerType is set (has been assigned a value) and false otherwisebooleanReturns true if field parameters is set (has been assigned a value) and false otherwisebooleanReturns true if field privileges is set (has been assigned a value) and false otherwisevoidputToParameters(String key, String val) voidread(org.apache.thrift.protocol.TProtocol iprot) setCatalogName(String catalogName) voidsetCatalogNameIsSet(boolean value) setDescription(String description) voidsetDescriptionIsSet(boolean value) voidsetFieldValue(Database._Fields field, Object value) setLocationUri(String locationUri) voidsetLocationUriIsSet(boolean value) voidsetNameIsSet(boolean value) setOwnerName(String ownerName) voidsetOwnerNameIsSet(boolean value) setOwnerType(PrincipalType ownerType) voidsetOwnerTypeIsSet(boolean value) setParameters(Map<String, String> parameters) voidsetParametersIsSet(boolean value) setPrivileges(PrincipalPrivilegeSet privileges) voidsetPrivilegesIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
-
-
Constructor Details
-
Database
public Database() -
Database
-
Database
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Database,Database._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Database,Database._Fields>
-
getName
-
setName
-
unsetName
public void unsetName() -
isSetName
public boolean isSetName()Returns true if field name is set (has been assigned a value) and false otherwise -
setNameIsSet
public void setNameIsSet(boolean value) -
getDescription
-
setDescription
-
unsetDescription
public void unsetDescription() -
isSetDescription
public boolean isSetDescription()Returns true if field description is set (has been assigned a value) and false otherwise -
setDescriptionIsSet
public void setDescriptionIsSet(boolean value) -
getLocationUri
-
setLocationUri
-
unsetLocationUri
public void unsetLocationUri() -
isSetLocationUri
public boolean isSetLocationUri()Returns true if field locationUri is set (has been assigned a value) and false otherwise -
setLocationUriIsSet
public void setLocationUriIsSet(boolean value) -
getParametersSize
public int getParametersSize() -
putToParameters
-
getParameters
-
setParameters
-
unsetParameters
public void unsetParameters() -
isSetParameters
public boolean isSetParameters()Returns true if field parameters is set (has been assigned a value) and false otherwise -
setParametersIsSet
public void setParametersIsSet(boolean value) -
getPrivileges
-
setPrivileges
-
unsetPrivileges
public void unsetPrivileges() -
isSetPrivileges
public boolean isSetPrivileges()Returns true if field privileges is set (has been assigned a value) and false otherwise -
setPrivilegesIsSet
public void setPrivilegesIsSet(boolean value) -
getOwnerName
-
setOwnerName
-
unsetOwnerName
public void unsetOwnerName() -
isSetOwnerName
public boolean isSetOwnerName()Returns true if field ownerName is set (has been assigned a value) and false otherwise -
setOwnerNameIsSet
public void setOwnerNameIsSet(boolean value) -
getOwnerType
- See Also:
-
setOwnerType
- See Also:
-
unsetOwnerType
public void unsetOwnerType() -
isSetOwnerType
public boolean isSetOwnerType()Returns true if field ownerType is set (has been assigned a value) and false otherwise -
setOwnerTypeIsSet
public void setOwnerTypeIsSet(boolean value) -
getCatalogName
-
setCatalogName
-
unsetCatalogName
public void unsetCatalogName() -
isSetCatalogName
public boolean isSetCatalogName()Returns true if field catalogName is set (has been assigned a value) and false otherwise -
setCatalogNameIsSet
public void setCatalogNameIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Database,Database._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Database,Database._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<Database,Database._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Database>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Database,Database._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
-