Package alluxio.table.common.udb
Class UdbContext
- java.lang.Object
-
- alluxio.table.common.udb.UdbContext
-
public class UdbContext extends java.lang.ObjectThe context for the udb.
-
-
Constructor Summary
Constructors Constructor Description UdbContext(UnderDatabaseRegistry udbRegistry, alluxio.client.file.FileSystem fileSystem, java.lang.String type, java.lang.String connectionUri, java.lang.String udbDbName, java.lang.String dbName)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConnectionUri()java.lang.StringgetDbName()alluxio.client.file.FileSystemgetFileSystem()alluxio.AlluxioURIgetTableLocation(java.lang.String tableName)java.lang.StringgetUdbDbName()UnderDatabaseRegistrygetUdbRegistry()
-
-
-
Constructor Detail
-
UdbContext
public UdbContext(UnderDatabaseRegistry udbRegistry, alluxio.client.file.FileSystem fileSystem, java.lang.String type, java.lang.String connectionUri, java.lang.String udbDbName, java.lang.String dbName)
Creates an instance.- Parameters:
udbRegistry- the udb registryfileSystem- the alluxio fs clienttype- the db typeconnectionUri- the connection uri for the udbudbDbName- name of the database in the udbdbName- name of the database in Alluxio
-
-
Method Detail
-
getDbName
public java.lang.String getDbName()
- Returns:
- the db name in Alluxio
-
getFileSystem
public alluxio.client.file.FileSystem getFileSystem()
- Returns:
- the alluxio fs client
-
getUdbRegistry
public UnderDatabaseRegistry getUdbRegistry()
- Returns:
- the udb registry
-
getConnectionUri
public java.lang.String getConnectionUri()
- Returns:
- the connection uri for the udb
-
getUdbDbName
public java.lang.String getUdbDbName()
- Returns:
- the db name in Udb
-
getTableLocation
public alluxio.AlluxioURI getTableLocation(java.lang.String tableName)
- Parameters:
tableName- the table name- Returns:
- the AlluxioURI for the table location for the specified table name
-
-