public class HiveDatabase extends Object implements UnderDatabase
Modifier and Type | Method and Description |
---|---|
static HiveDatabase |
create(UdbContext udbContext,
UdbConfiguration configuration)
Creates an instance of the Hive database UDB.
|
DatabaseInfo |
getDatabaseInfo() |
String |
getName() |
UdbTable |
getTable(String tableName,
UdbBypassSpec bypassSpec) |
List<String> |
getTableNames() |
String |
getType() |
UdbContext |
getUdbContext() |
public static HiveDatabase 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
public 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
Copyright © 2023. All Rights Reserved.