Class WebClientData2Objects

java.lang.Object
io.deephaven.enterprise.webclientdata2.WebClientData2Objects

public class WebClientData2Objects extends Object
Create object and tables associated with the WebClientData PQ
  • Field Details

  • Constructor Details

    • WebClientData2Objects

      public WebClientData2Objects()
  • Method Details

    • createControllerSubscriptionTables

      @ScriptApi public static Map<String,Table> createControllerSubscriptionTables(String user, PersistentQueryControllerClientFactory pqccFactory, GroupProvider groupProvider)
      Create a map of table names generated from controller subscription data
      Parameters:
      user -
      pqccFactory - a controller client factory, whose authentication when created should match the given user
      groupProvider - a group provider
      Returns:
      a map of table names to tables
    • getPerUserTableNames

      public static Set<String> getPerUserTableNames()
      Get the names of tables created by a call to the createPerUserTables method
      Returns:
      a Set of table names
    • createControllerSubscriptionTables

      public static Map<String,Table> createControllerSubscriptionTables(String user, PersistentQueryControllerClient client, GroupProvider groupProvider)
      Create a map of table names generated from controller subscription data
      Parameters:
      user - a user
      client - a controller client authenticated to the given user
      groupProvider - a group provider
      Returns:
      a map of table names to tables
    • registerScopeTables

      public static void registerScopeTables(Database db, QueryScope scope)
      Register the tables that WebClientData should have at scope level
      Parameters:
      db - the database to use
      scope - the scope where to register the tables
    • createControllerSubscriptionTables

      public static Map<String,Table> createControllerSubscriptionTables(String user, PersistentQueryControllerClient client, GroupProvider groupProvider, Runnable shutdownHook)
      Create a map of table names to tables for a given user
      Parameters:
      user - the user
      client - a controller authenticated to the given user
      groupProvider - a group provider
      shutdownHook - code to run once the objects in the map are all shutdown
      Returns:
      a map of table names to tables for the given user
    • createCatalogTable

      public static Table createCatalogTable(Database db, String user)
      Create and return the catalog table for the given user.
      Parameters:
      db - the database
      user - the user
      Returns:
      the catalog table
    • workspaceDataUnfilteredTable

      public static Table workspaceDataUnfilteredTable(Database db)
      Get an unfiltered view on the WorkspaceData table.
      Parameters:
      db - the database
      Returns:
      a table
    • historicalAndLiveMerged

      public static Table historicalAndLiveMerged(@NotNull @NotNull Database db, @NotNull @NotNull String tableName)