public class AlterDatabaseDesc extends DDLDesc implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AlterDatabaseDesc.ALTER_DB_TYPES |
DDLDesc.DDLDescWithWriteId
Constructor and Description |
---|
AlterDatabaseDesc()
For serialization only.
|
AlterDatabaseDesc(String databaseName,
Map<String,String> dbProps,
ReplicationSpec replicationSpec) |
AlterDatabaseDesc(String databaseName,
PrincipalDesc ownerPrincipal,
ReplicationSpec replicationSpec) |
AlterDatabaseDesc(String databaseName,
String newLocation) |
Modifier and Type | Method and Description |
---|---|
AlterDatabaseDesc.ALTER_DB_TYPES |
getAlterType() |
String |
getDatabaseName() |
Map<String,String> |
getDatabaseProperties() |
String |
getLocation() |
PrincipalDesc |
getOwnerPrincipal() |
ReplicationSpec |
getReplicationSpec() |
void |
setAlterType(AlterDatabaseDesc.ALTER_DB_TYPES alterType) |
void |
setDatabaseName(String databaseName) |
void |
setDatabaseProperties(Map<String,String> dbProps) |
void |
setLocation(String location) |
void |
setOwnerPrincipal(PrincipalDesc ownerPrincipal) |
public AlterDatabaseDesc()
public AlterDatabaseDesc(String databaseName, Map<String,String> dbProps, ReplicationSpec replicationSpec)
public AlterDatabaseDesc(String databaseName, PrincipalDesc ownerPrincipal, ReplicationSpec replicationSpec)
public String getDatabaseName()
public void setDatabaseName(String databaseName)
public PrincipalDesc getOwnerPrincipal()
public void setOwnerPrincipal(PrincipalDesc ownerPrincipal)
public String getLocation()
public void setLocation(String location)
public AlterDatabaseDesc.ALTER_DB_TYPES getAlterType()
public void setAlterType(AlterDatabaseDesc.ALTER_DB_TYPES alterType)
public ReplicationSpec getReplicationSpec()
Copyright © 2022 The Apache Software Foundation. All rights reserved.