@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class Database extends java.lang.Object implements org.apache.thrift.TBase<Database,Database._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Database>
| Modifier and Type | Class and Description |
|---|---|
static class |
Database._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<Database._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
Database() |
Database(Database other)
Performs a deep copy on other.
|
Database(java.lang.String name,
java.lang.String description,
java.lang.String locationUri,
java.util.Map<java.lang.String,java.lang.String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(Database other) |
Database |
deepCopy() |
boolean |
equals(Database that) |
boolean |
equals(java.lang.Object that) |
Database._Fields |
fieldForId(int fieldId) |
java.lang.String |
getCatalogName() |
java.lang.String |
getDescription() |
java.lang.Object |
getFieldValue(Database._Fields field) |
java.lang.String |
getLocationUri() |
java.lang.String |
getName() |
java.lang.String |
getOwnerName() |
PrincipalType |
getOwnerType() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
int |
getParametersSize() |
PrincipalPrivilegeSet |
getPrivileges() |
int |
hashCode() |
boolean |
isSet(Database._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCatalogName()
Returns true if field catalogName is set (has been assigned a value) and false otherwise
|
boolean |
isSetDescription()
Returns true if field description is set (has been assigned a value) and false otherwise
|
boolean |
isSetLocationUri()
Returns true if field locationUri is set (has been assigned a value) and false otherwise
|
boolean |
isSetName()
Returns true if field name is set (has been assigned a value) and false otherwise
|
boolean |
isSetOwnerName()
Returns true if field ownerName is set (has been assigned a value) and false otherwise
|
boolean |
isSetOwnerType()
Returns true if field ownerType is set (has been assigned a value) and false otherwise
|
boolean |
isSetParameters()
Returns true if field parameters is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrivileges()
Returns true if field privileges is set (has been assigned a value) and false otherwise
|
void |
putToParameters(java.lang.String key,
java.lang.String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setCatalogName(java.lang.String catalogName) |
void |
setCatalogNameIsSet(boolean value) |
void |
setDescription(java.lang.String description) |
void |
setDescriptionIsSet(boolean value) |
void |
setFieldValue(Database._Fields field,
java.lang.Object value) |
void |
setLocationUri(java.lang.String locationUri) |
void |
setLocationUriIsSet(boolean value) |
void |
setName(java.lang.String name) |
void |
setNameIsSet(boolean value) |
void |
setOwnerName(java.lang.String ownerName) |
void |
setOwnerNameIsSet(boolean value) |
void |
setOwnerType(PrincipalType ownerType) |
void |
setOwnerTypeIsSet(boolean value) |
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters) |
void |
setParametersIsSet(boolean value) |
void |
setPrivileges(PrincipalPrivilegeSet privileges) |
void |
setPrivilegesIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetCatalogName() |
void |
unsetDescription() |
void |
unsetLocationUri() |
void |
unsetName() |
void |
unsetOwnerName() |
void |
unsetOwnerType() |
void |
unsetParameters() |
void |
unsetPrivileges() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<Database._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Database()
public Database(java.lang.String name,
java.lang.String description,
java.lang.String locationUri,
java.util.Map<java.lang.String,java.lang.String> parameters)
public Database(Database other)
public Database deepCopy()
deepCopy in interface org.apache.thrift.TBase<Database,Database._Fields>public void clear()
clear in interface org.apache.thrift.TBase<Database,Database._Fields>public java.lang.String getName()
public void setName(java.lang.String name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public void unsetDescription()
public boolean isSetDescription()
public void setDescriptionIsSet(boolean value)
public java.lang.String getLocationUri()
public void setLocationUri(java.lang.String locationUri)
public void unsetLocationUri()
public boolean isSetLocationUri()
public void setLocationUriIsSet(boolean value)
public int getParametersSize()
public void putToParameters(java.lang.String key,
java.lang.String val)
public java.util.Map<java.lang.String,java.lang.String> getParameters()
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
public void unsetParameters()
public boolean isSetParameters()
public void setParametersIsSet(boolean value)
public PrincipalPrivilegeSet getPrivileges()
public void setPrivileges(PrincipalPrivilegeSet privileges)
public void unsetPrivileges()
public boolean isSetPrivileges()
public void setPrivilegesIsSet(boolean value)
public java.lang.String getOwnerName()
public void setOwnerName(java.lang.String ownerName)
public void unsetOwnerName()
public boolean isSetOwnerName()
public void setOwnerNameIsSet(boolean value)
public PrincipalType getOwnerType()
PrincipalTypepublic void setOwnerType(PrincipalType ownerType)
PrincipalTypepublic void unsetOwnerType()
public boolean isSetOwnerType()
public void setOwnerTypeIsSet(boolean value)
public java.lang.String getCatalogName()
public void setCatalogName(java.lang.String catalogName)
public void unsetCatalogName()
public boolean isSetCatalogName()
public void setCatalogNameIsSet(boolean value)
public void setFieldValue(Database._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<Database,Database._Fields>public java.lang.Object getFieldValue(Database._Fields field)
getFieldValue in interface org.apache.thrift.TBase<Database,Database._Fields>public boolean isSet(Database._Fields field)
isSet in interface org.apache.thrift.TBase<Database,Database._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(Database that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Database other)
compareTo in interface java.lang.Comparable<Database>public Database._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<Database,Database._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TBase<Database,Database._Fields>org.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TBase<Database,Database._Fields>org.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2013-2021. All Rights Reserved.