Class PersistentQueryConfigTableUtils
java.lang.Object
com.illumon.iris.controller.utils.PersistentQueryConfigTableUtils
Utility class for creating a Persistent Query Config Table and supports Swing Panel Rendering.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static class
Helper class to analyze and hold selected query states and permissions. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQueryTypeNames
(PersistentQueryControllerConfiguration serverConfiguration) Gets a map of from Query Type to Display Name.static Stream<RoutingConfigurationInfo>
getRoutingConfigurations
(PersistentQueryControllerConfiguration serverConfiguration, String tag) Get the routing configurations matching the given tag.getSelectedQueryState
(IrisUserContext irisUserContext, PersistentQueryControllerConfiguration serverConfiguration, PersistentQueryInfo... selectedQueries) Gets the states for selected queries and permissions for those queries based on user context.static boolean
isStateColumn
(int columnIndex) static boolean
isStateColumn
(String columnName) lookupGetValueProcedure
(String columnName) Creates a function that will lookup the value of column based on its name.supportedParquetCodecsStream
(com.fishlib.configuration.Configuration configuration) Determine the supported parquet codecs.
-
Field Details
-
QUERY_TYPE_TO_NAME_KEY
- See Also:
-
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
-
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 contextserverConfiguration
- the server configurationselectedQueries
- 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 configurationtag
- 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 propertySUPPORTED_PARQUET_CODECS_PROPERTY
.- Parameters:
configuration
- the Configuration instance- Returns:
- a Stream of available codecs
-