public class GlueDatabase extends Object implements UnderDatabase
Modifier | Constructor and Description |
---|---|
protected |
GlueDatabase(UdbContext udbContext,
UdbConfiguration glueConfig,
String glueDbName) |
Modifier and Type | Method and Description |
---|---|
static GlueDatabase |
create(UdbContext udbContext,
UdbConfiguration configuration)
Create an instance of the Glue database UDB.
|
protected static com.amazonaws.services.glue.AWSGlueAsync |
createAsyncGlueClient(UdbConfiguration config)
This method allows user to test udb glue client with remote glue server.
|
com.amazonaws.services.glue.AWSGlueAsync |
getClient()
Get Glue Client.
|
DatabaseInfo |
getDatabaseInfo() |
String |
getName() |
UdbTable |
getTable(String tableName,
UdbBypassSpec bypassSpec) |
List<String> |
getTableNames() |
String |
getType() |
UdbContext |
getUdbContext() |
protected GlueDatabase(UdbContext udbContext, UdbConfiguration glueConfig, String glueDbName)
public static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration)
udbContext
- the db contextconfiguration
- the configurationpublic UdbContext getUdbContext()
getUdbContext
in interface UnderDatabase
UdbContext
public DatabaseInfo getDatabaseInfo() throws IOException
getDatabaseInfo
in interface UnderDatabase
IOException
protected static com.amazonaws.services.glue.AWSGlueAsync createAsyncGlueClient(UdbConfiguration config)
config
- udbconfigurationpublic String getType()
getType
in interface UnderDatabase
public String getName()
getName
in interface UnderDatabase
public List<String> getTableNames() throws IOException
getTableNames
in interface UnderDatabase
IOException
public UdbTable getTable(String tableName, UdbBypassSpec bypassSpec) throws IOException
getTable
in interface UnderDatabase
tableName
- the table namebypassSpec
- table and partition bypass specificationUdbTable
for the specified table nameIOException
public com.amazonaws.services.glue.AWSGlueAsync getClient()
Copyright © 2023. All Rights Reserved.