Search in sources :

Example 1 with ServerConfig

use of io.prestosql.server.ServerConfig in project hetu-core by openlookeng.

the class EmbedVersion method baseClassName.

private static String baseClassName(ServerConfig serverConfig) {
    String builtInVersion = new ServerConfig().getPrestoVersion();
    String configuredVersion = serverConfig.getPrestoVersion();
    String version = configuredVersion;
    if (!Objects.equals(builtInVersion, configuredVersion)) {
        version = format("%s__%s", builtInVersion, configuredVersion);
    }
    return format("Presto_%s___", version);
}
Also used : ServerConfig(io.prestosql.server.ServerConfig)

Aggregations

ServerConfig (io.prestosql.server.ServerConfig)1