Class PersistentQueryConfigTableUtils

java.lang.Object
com.illumon.iris.controller.utils.PersistentQueryConfigTableUtils

public class PersistentQueryConfigTableUtils extends Object
Utility class for creating a Persistent Query Config Table and supports Swing Panel Rendering.
  • Field Details

    • QUERY_TYPE_TO_NAME_KEY

      public static final String QUERY_TYPE_TO_NAME_KEY
      See Also:
    • localTestTypes

      public static final String[] localTestTypes
      The following constants are the possible `TestType` values defined in `RunDataQualityTests` class. They need to be defined here in a lower package on the hierarchy to provide both the Web and Swing with access.
  • Constructor Details

    • PersistentQueryConfigTableUtils

      public PersistentQueryConfigTableUtils()
  • Method Details

    • getQueryTypeNames

      public static Map<String,String> getQueryTypeNames(@Nullable PersistentQueryControllerConfiguration serverConfiguration)
      Gets a map of from Query Type to Display Name.
      Parameters:
      serverConfiguration - the server configuration
      Returns:
      the query type name map
    • lookupGetValueProcedure

      public static Optional<PersistentQueryConfigTableUtils.GetValueProcedure<Object>> lookupGetValueProcedure(String columnName)
      Creates a function that will lookup the value of column based on its name.
      Parameters:
      columnName - the name of the column
      Returns:
      a function that will lookup the value
    • isStateColumn

      public static boolean isStateColumn(String columnName)
    • isStateColumn

      public static boolean isStateColumn(int columnIndex)
    • getSelectedQueryState

      public static PersistentQueryConfigTableUtils.SelectedQueryStates getSelectedQueryState(@NotNull IrisUserContext irisUserContext, @NotNull PersistentQueryControllerConfiguration serverConfiguration, @NotNull PersistentQueryInfo... selectedQueries)
      Gets the states for selected queries and permissions for those queries based on user context.
      Parameters:
      irisUserContext - the user context
      serverConfiguration - the server configuration
      selectedQueries - the selected queries
      Returns:
      a data object containing the states and permissions
    • getRoutingConfigurations

      public static Stream<RoutingConfigurationInfo> getRoutingConfigurations(PersistentQueryControllerConfiguration serverConfiguration, String tag)
      Get the routing configurations matching the given tag.
      Parameters:
      serverConfiguration - the server configuration
      tag - the tag to filter by. Falls back to returning all if no routing config matches the tag
      Returns:
      the routing configurations
    • supportedParquetCodecsStream

      public static Stream<String> supportedParquetCodecsStream(com.fishlib.configuration.Configuration configuration)
      Determine the supported parquet codecs. Some codecs require additional jar files which aren't part of the base Deephaven installation, so by default the available codecs are limited through the property SUPPORTED_PARQUET_CODECS_PROPERTY.
      Parameters:
      configuration - the Configuration instance
      Returns:
      a Stream of available codecs