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 aTableDefinitionfrom 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.UserContexthistoricalPartitionedTable(@NotNull String namespace, @NotNull String tableName) Retrieve the specified historical table as aPartitionedTablefrom the Database.historicalTable(@NotNull String namespace, @NotNull String tableName) Fetch a static historicalTablefrom the database.livePartitionedTable(@NotNull String namespace, @NotNull String tableName, boolean resultLive) Retrieve the specified live table as aPartitionedTablefrom the Database.Fetch a liveTablefor the specified namespace and table name.voidsetCatalog(@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, waitMethods 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:DatabaseFetch a liveTablefor the specified namespace and table name.- Specified by:
liveTablein interfaceAclSupport- Specified by:
liveTablein 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
Tablefor the specified parameters.
-
historicalTable
public Table historicalTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:DatabaseFetch a static historicalTablefrom the database.- Specified by:
historicalTablein interfaceAclSupport- Specified by:
historicalTablein interfaceDatabase- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- a new static
Tablefor the specified parameters.
-
getTableDefinition
public TableDefinition getTableDefinition(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:DatabaseFetch aTableDefinitionfrom the database.- Specified by:
getTableDefinitionin interfaceDatabase- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- the
TableDefinitionfor the specified parameters.
-
getTableDefinitionTable
public Table getTableDefinitionTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:DatabaseFetch a table's definition table from the database.- Specified by:
getTableDefinitionTablein interfaceDatabase- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- a
Tableof the column definitions for the specified parameters.
-
getNamespaces
Description copied from interface:DatabaseGet the available namespaces.- Specified by:
getNamespacesin interfaceDatabase- Returns:
- the list of namespaces
-
getTableNames
Description copied from interface:DatabaseGet the tables within a namespace- Specified by:
getTableNamesin interfaceDatabase- Parameters:
namespace- the namespace to interrogate- Returns:
- the list of tables within namespace
-
getCatalogTable
Description copied from interface:DatabaseRetrieve a table containing the tables that exist in this database.The returned table has a column for "Namespace", "Tablename" and "NamespaceSet".
- Specified by:
getCatalogTablein interfaceDatabase- Returns:
- a table containing the tables that exist in this database.
-
getUserContext
@NotNull public @NotNull io.deephaven.enterprise.auth.UserContext getUserContext()- Specified by:
getUserContextin interfaceDatabaseInternal
-
getGroupProvider
- Specified by:
getGroupProviderin 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:DatabaseRetrieve the specified live table as aPartitionedTablefrom the Database.- Specified by:
livePartitionedTablein 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
PartitionedTablefor the specified table
-
historicalPartitionedTable
public PartitionedTable historicalPartitionedTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:DatabaseRetrieve the specified historical table as aPartitionedTablefrom the Database.- Specified by:
historicalPartitionedTablein interfaceDatabase- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- a new
PartitionedTablefor the specified table
-