Package io.deephaven.enterprise.database
Interface Database
- All Known Subinterfaces:
DatabaseInternal
- All Known Implementing Classes:
DatabaseImpl
This interface presents a view of the data store for the system in both Live, and Historical versions.
-
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(String namespace) Get the tables within a namespacehistoricalPartitionedTable(@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.default PartitionedTablelivePartitionedTable(@NotNull String namespace, @NotNull String tableName) Retrieve the specified live table as aPartitionedTablefrom the Database.livePartitionedTable(@NotNull String namespace, @NotNull String tableName, boolean resultLive) Retrieve the specified live table as aPartitionedTablefrom the Database.default TableFetch a liveTablefor the specified namespace and table name.Fetch a liveTablefor the specified namespace and table name.
-
Method Details
-
liveTable
@ScriptApi @FinalDefault default Table liveTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Fetch a liveTablefor the specified namespace and table name.- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- a new live
Tablefor the specified parameters.
-
liveTable
@ScriptApi Table liveTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, boolean resultLive) Fetch a liveTablefor the specified namespace and table name.- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.resultLive- true if the returned table should be refreshing- Returns:
- a new live
Tablefor the specified parameters.
-
livePartitionedTable
@ScriptApi @FinalDefault default PartitionedTable livePartitionedTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Retrieve the specified live table as aPartitionedTablefrom the Database.- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- a new
PartitionedTablefor the specified table
-
livePartitionedTable
PartitionedTable livePartitionedTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName, boolean resultLive) Retrieve the specified live table as aPartitionedTablefrom the Database.- 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
-
historicalTable
@ScriptApi Table historicalTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Fetch a static historicalTablefrom the database.- 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.
-
historicalPartitionedTable
PartitionedTable historicalPartitionedTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Retrieve the specified historical table as aPartitionedTablefrom the Database.- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- a new
PartitionedTablefor the specified table
-
getTableDefinition
TableDefinition getTableDefinition(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Fetch aTableDefinitionfrom the database.- Parameters:
namespace- the Namespace in which the table existstableName- the name of the table in the Namespace.- Returns:
- the
TableDefinitionfor the specified parameters.
-
getTableDefinitionTable
Table getTableDefinitionTable(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Fetch a table's definition table from the database.- 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
Collection<String> getNamespaces()Get the available namespaces.- Returns:
- the list of namespaces
-
getTableNames
Get the tables within a namespace- Parameters:
namespace- the namespace to interrogate- Returns:
- the list of tables within namespace
-
getCatalogTable
Table getCatalogTable()Retrieve a table containing the tables that exist in this database.The returned table has a column for "Namespace", "Tablename" and "NamespaceSet".
- Returns:
- a table containing the tables that exist in this database.
-