Class DatabaseImpl
java.lang.Object
io.deephaven.enterprise.database.impl.DatabaseImpl
- All Implemented Interfaces:
AclSupport
,Database
,DatabaseInternal
A basic implementation of the
Database
interface.-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseImpl
(@NotNull TableDataService tableDataService, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.schema.SchemaService schemaService, @NotNull GroupProvider groupProvider, @NotNull SourceAclProvider sourceAclProvider, @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull io.deephaven.enterprise.auth.audit.AuditEventLogger auditEventLogger) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a table containing the tables that exist in this database.Get the available namespaces.getTableDefinition
(@NotNull String namespace, @NotNull String tableName) Fetch aTableDefinition
from the database.getTableDefinitionTable
(@NotNull String namespace, @NotNull String tableName) Fetch a table's definition table from the database.getTableNames
(@Nullable String namespace) Get the tables within a namespace@NotNull io.deephaven.enterprise.auth.UserContext
historicalPartitionedTable
(@NotNull String namespace, @NotNull String tableName) Retrieve the specified historical table as aPartitionedTable
from the Database.historicalTable
(@NotNull String namespace, @NotNull String tableName) Fetch a static historicalTable
from the database.livePartitionedTable
(@NotNull String namespace, @NotNull String tableName, boolean resultLive) Retrieve the specified live table as aPartitionedTable
from the Database.Fetch a liveTable
for the specified namespace and table name.void
setCatalog
(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.databases.DatabaseCatalog databaseCatalog) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.enterprise.database.Database
livePartitionedTable, liveTable
-
Constructor Details
-
DatabaseImpl
public DatabaseImpl(@NotNull @NotNull TableDataService tableDataService, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.schema.SchemaService schemaService, @NotNull @NotNull GroupProvider groupProvider, @NotNull @NotNull SourceAclProvider sourceAclProvider, @NotNull @NotNull io.deephaven.enterprise.auth.UserContext userContext, @NotNull @NotNull io.deephaven.enterprise.auth.audit.AuditEventLogger auditEventLogger)
-
-
Method Details
-
liveTable
public Table liveTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, boolean isRefreshing) Description copied from interface:Database
Fetch a liveTable
for the specified namespace and table name.- Specified by:
liveTable
in interfaceAclSupport
- Specified by:
liveTable
in interfaceDatabase
- Parameters:
namespace
- the Namespace in which the table existstableName
- the name of the table in the Namespace.isRefreshing
- true if the returned table should be refreshing- Returns:
- a new live
Table
for the specified parameters.
-
historicalTable
public Table historicalTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:Database
Fetch a static historicalTable
from the database.- Specified by:
historicalTable
in interfaceAclSupport
- Specified by:
historicalTable
in interfaceDatabase
- Parameters:
namespace
- the Namespace in which the table existstableName
- the name of the table in the Namespace.- Returns:
- a new static
Table
for the specified parameters.
-
getTableDefinition
public TableDefinition getTableDefinition(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:Database
Fetch aTableDefinition
from the database.- Specified by:
getTableDefinition
in interfaceDatabase
- Parameters:
namespace
- the Namespace in which the table existstableName
- the name of the table in the Namespace.- Returns:
- the
TableDefinition
for the specified parameters.
-
getTableDefinitionTable
public Table getTableDefinitionTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:Database
Fetch a table's definition table from the database.- Specified by:
getTableDefinitionTable
in interfaceDatabase
- Parameters:
namespace
- the Namespace in which the table existstableName
- the name of the table in the Namespace.- Returns:
- a
Table
of the column definitions for the specified parameters.
-
getNamespaces
Description copied from interface:Database
Get the available namespaces.- Specified by:
getNamespaces
in interfaceDatabase
- Returns:
- the list of namespaces
-
getTableNames
Description copied from interface:Database
Get the tables within a namespace- Specified by:
getTableNames
in interfaceDatabase
- Parameters:
namespace
- the namespace to interrogate- Returns:
- the list of tables within namespace
-
getCatalogTable
Description copied from interface:Database
Retrieve a table containing the tables that exist in this database.The returned table has a column for "Namespace", "Tablename" and "NamespaceSet".
- Specified by:
getCatalogTable
in interfaceDatabase
- Returns:
- a table containing the tables that exist in this database.
-
getUserContext
@NotNull public @NotNull io.deephaven.enterprise.auth.UserContext getUserContext()- Specified by:
getUserContext
in interfaceDatabaseInternal
-
getGroupProvider
- Specified by:
getGroupProvider
in interfaceAclSupport
-
setCatalog
public void setCatalog(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.databases.DatabaseCatalog databaseCatalog) -
livePartitionedTable
public PartitionedTable livePartitionedTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, boolean resultLive) Description copied from interface:Database
Retrieve the specified live table as aPartitionedTable
from the Database.- Specified by:
livePartitionedTable
in interfaceDatabase
- Parameters:
namespace
- the Namespace in which the table existstableName
- the name of the table in the Namespace.resultLive
- true if the returned partitioned table should be refreshing- Returns:
- a new
PartitionedTable
for the specified table
-
historicalPartitionedTable
public PartitionedTable historicalPartitionedTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:Database
Retrieve the specified historical table as aPartitionedTable
from the Database.- Specified by:
historicalPartitionedTable
in interfaceDatabase
- Parameters:
namespace
- the Namespace in which the table existstableName
- the name of the table in the Namespace.- Returns:
- a new
PartitionedTable
for the specified table
-