@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Database extends Object implements Serializable, Cloneable, StructuredPojo
The Database
object represents a logical grouping of tables that may reside in a Hive metastore or an
RDBMS.
Constructor and Description |
---|
Database() |
Modifier and Type | Method and Description |
---|---|
Database |
addParametersEntry(String key,
String value) |
Database |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Database |
clone() |
boolean |
equals(Object obj) |
Date |
getCreateTime()
The time at which the metadata database was created in the catalog.
|
String |
getDescription()
Description of the database.
|
String |
getLocationUri()
The location of the database (for example, an HDFS path).
|
String |
getName()
Name of the database.
|
Map<String,String> |
getParameters()
These key-value pairs define parameters and properties of the database.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
|
void |
setDescription(String description)
Description of the database.
|
void |
setLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
|
void |
setName(String name)
Name of the database.
|
void |
setParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
|
String |
toString()
Returns a string representation of this object.
|
Database |
withCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
|
Database |
withDescription(String description)
Description of the database.
|
Database |
withLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
|
Database |
withName(String name)
Name of the database.
|
Database |
withParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
|
public void setName(String name)
Name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
name
- Name of the database. For Hive compatibility, this is folded to lowercase when it is stored.public String getName()
Name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
public Database withName(String name)
Name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
name
- Name of the database. For Hive compatibility, this is folded to lowercase when it is stored.public void setDescription(String description)
Description of the database.
description
- Description of the database.public String getDescription()
Description of the database.
public Database withDescription(String description)
Description of the database.
description
- Description of the database.public void setLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
locationUri
- The location of the database (for example, an HDFS path).public String getLocationUri()
The location of the database (for example, an HDFS path).
public Database withLocationUri(String locationUri)
The location of the database (for example, an HDFS path).
locationUri
- The location of the database (for example, an HDFS path).public Map<String,String> getParameters()
These key-value pairs define parameters and properties of the database.
public void setParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
parameters
- These key-value pairs define parameters and properties of the database.public Database withParameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
parameters
- These key-value pairs define parameters and properties of the database.public Database clearParametersEntries()
public void setCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
createTime
- The time at which the metadata database was created in the catalog.public Date getCreateTime()
The time at which the metadata database was created in the catalog.
public Database withCreateTime(Date createTime)
The time at which the metadata database was created in the catalog.
createTime
- The time at which the metadata database was created in the catalog.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.