public class Database extends Object implements org.apache.thrift.TBase<Database,Database._Fields>, Serializable, Cloneable
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 Map<Database._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Database() |
Database(Database other)
Performs a deep copy on other.
|
Database(String name,
String description,
String locationUri,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(Database other) |
Database |
deepCopy() |
boolean |
equals(Database that) |
boolean |
equals(Object that) |
Database._Fields |
fieldForId(int fieldId) |
String |
getDescription() |
Object |
getFieldValue(Database._Fields field) |
String |
getLocationUri() |
String |
getName() |
String |
getOwnerName() |
PrincipalType |
getOwnerType() |
Map<String,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 |
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(String key,
String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setDescription(String description) |
void |
setDescriptionIsSet(boolean value) |
void |
setFieldValue(Database._Fields field,
Object value) |
void |
setLocationUri(String locationUri) |
void |
setLocationUriIsSet(boolean value) |
void |
setName(String name) |
void |
setNameIsSet(boolean value) |
void |
setOwnerName(String ownerName) |
void |
setOwnerNameIsSet(boolean value) |
void |
setOwnerType(PrincipalType ownerType) |
void |
setOwnerTypeIsSet(boolean value) |
void |
setParameters(Map<String,String> parameters) |
void |
setParametersIsSet(boolean value) |
void |
setPrivileges(PrincipalPrivilegeSet privileges) |
void |
setPrivilegesIsSet(boolean value) |
String |
toString() |
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 Map<Database._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Database()
public Database(String name, String description, String locationUri, Map<String,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 String getName()
public void setName(String name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public String getDescription()
public void setDescription(String description)
public void unsetDescription()
public boolean isSetDescription()
public void setDescriptionIsSet(boolean value)
public String getLocationUri()
public void setLocationUri(String locationUri)
public void unsetLocationUri()
public boolean isSetLocationUri()
public void setLocationUriIsSet(boolean value)
public int getParametersSize()
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 String getOwnerName()
public void setOwnerName(String ownerName)
public void unsetOwnerName()
public boolean isSetOwnerName()
public void setOwnerNameIsSet(boolean value)
public PrincipalType getOwnerType()
PrincipalType
public void setOwnerType(PrincipalType ownerType)
PrincipalType
public void unsetOwnerType()
public boolean isSetOwnerType()
public void setOwnerTypeIsSet(boolean value)
public void setFieldValue(Database._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Database,Database._Fields>
public 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(Database that)
public int compareTo(Database other)
compareTo
in interface 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.TException
public 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.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.