@DefunctConfig("compiler.interpreter-enabled") public class CompilerConfig { private int expressionCacheSize = 10_000; @Min(0) public int getExpressionCacheSize() { return expressionCacheSize; } @Config("compiler.expression-cache-size") @Description("Reuse compiled expressions across multiple queries") public CompilerConfig setExpressionCacheSize(int expressionCacheSize) { this.expressionCacheSize = expressionCacheSize; return this; } }
if (configClass.isAnnotationPresent(DefunctConfig.class)) { DefunctConfig defunctConfig = configClass.getAnnotation(DefunctConfig.class); if (defunctConfig.value().length < 1) { problems.addError("@DefunctConfig annotation on class [%s] is empty", configClass.getName()); for (String defunct : configClass.getAnnotation(DefunctConfig.class).value()) { if (defunct.isEmpty()) { problems.addError("@DefunctConfig annotation on class [%s] contains empty values", configClass.getName());
if (configClass.isAnnotationPresent(DefunctConfig.class)) { DefunctConfig defunctConfig = configClass.getAnnotation(DefunctConfig.class); if (defunctConfig.value().length < 1) { problems.addError("@DefunctConfig annotation on class [%s] is empty", configClass.getName()); for (String defunct : configClass.getAnnotation(DefunctConfig.class).value()) { if (defunct.isEmpty()) { problems.addError("@DefunctConfig annotation on class [%s] contains empty values", configClass.getName());
@DefunctConfig("http.server.authentication.enabled") public class SecurityConfig
if (configClass.isAnnotationPresent(DefunctConfig.class)) { DefunctConfig defunctConfig = configClass.getAnnotation(DefunctConfig.class); if (defunctConfig.value().length < 1) { problems.addError("@DefunctConfig annotation on class [%s] is empty", configClass.getName()); for (String defunct : configClass.getAnnotation(DefunctConfig.class).value()) { if (defunct.isEmpty()) { problems.addError("@DefunctConfig annotation on class [%s] contains empty values", configClass.getName());
@DefunctConfig({ "experimental.cluster-memory-manager-enabled", "query.low-memory-killer.enabled"})
for (String value : configClass.getAnnotation(DefunctConfig.class).value()) { if (!value.isEmpty() && properties.get(prefix + value) != null) { problems.addError("Defunct property '%s' (class [%s]) cannot be configured.", value, configClass.toString());
@DefunctConfig({"node-scheduler.location-aware-scheduling-enabled", "node-scheduler.multiple-tasks-per-node-enabled"}) public class NodeSchedulerConfig
for (String value : configClass.getAnnotation(DefunctConfig.class).value()) { String name = prefix + value; if (!value.isEmpty() && properties.get(name) != null) {
@DefunctConfig({ "query.max-pending-splits-per-node", "query.queue-config-file",
for (String value : configClass.getAnnotation(DefunctConfig.class).value()) { String name = prefix + value; if (!value.isEmpty() && properties.get(name) != null) {
@DefunctConfig("mongodb.connection-per-host") public class MongoClientConfig
@DefunctConfig({ "experimental.big-query-max-task-memory", "task.max-memory",
@DefunctConfig({"cassandra.thrift-port", "cassandra.partitioner", "cassandra.thrift-connection-factory-class", "cassandra.transport-factory-options", "cassandra.no-host-available-retry-count", "cassandra.max-schema-refresh-threads", "cassandra.schema-cache-ttl", "cassandra.schema-refresh-interval"})
@DefunctConfig({ "hive.file-system-cache-ttl", "hive.max-global-split-iterator-threads",
@DefunctConfig({ "resource-group-manager", "experimental.resource-groups-enabled",
@DefunctConfig("compiler.interpreter-enabled") public class CompilerConfig { private int expressionCacheSize = 10_000; @Min(0) public int getExpressionCacheSize() { return expressionCacheSize; } @Config("compiler.expression-cache-size") @Description("Reuse compiled expressions across multiple queries") public CompilerConfig setExpressionCacheSize(int expressionCacheSize) { this.expressionCacheSize = expressionCacheSize; return this; } }
@DefunctConfig("compiler.interpreter-enabled") public class CompilerConfig { private int expressionCacheSize = 10_000; @Min(0) public int getExpressionCacheSize() { return expressionCacheSize; } @Config("compiler.expression-cache-size") @Description("Reuse compiled expressions across multiple queries") public CompilerConfig setExpressionCacheSize(int expressionCacheSize) { this.expressionCacheSize = expressionCacheSize; return this; } }
/** * see <a href="http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html">http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html</a> */ @DefunctConfig({"db.host", "db.port", "db.database", "db.ssl.enabled"}) public class MySqlDataSourceConfig extends ManagedDataSourceConfig<MySqlDataSourceConfig> { private int defaultFetchSize = 100; /** * Gets the default fetch size for all connection. */ public int getDefaultFetchSize() { return defaultFetchSize; } /** * Sets the default fetch size for all connection. */ @Config("db.fetch-size") public MySqlDataSourceConfig setDefaultFetchSize(int defaultFetchSize) { this.defaultFetchSize = defaultFetchSize; return this; } }
@DefunctConfig("jmx.rmiserver.hostname") public class JmxConfig