io.airlift.configuration.Config.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中io.airlift.configuration.Config.<init>()方法的一些代码示例,展示了Config.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config.<init>()方法的具体详情如下:
包路径:io.airlift.configuration.Config
类名称:Config
方法名:<init>

Config.<init>介绍

暂无

代码示例

代码示例来源:origin: prestodb/presto

@Config("hive.metastore.glue.max-connections")
@ConfigDescription("Max number of concurrent connections to Glue")
public GlueHiveMetastoreConfig setMaxGlueConnections(int maxGlueConnections)
{
  this.maxGlueConnections = maxGlueConnections;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("hive.s3.sse.enabled")
@ConfigDescription("Enable S3 server side encryption")
public HiveS3Config setS3SseEnabled(boolean s3SseEnabled)
{
  this.s3SseEnabled = s3SseEnabled;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("hive.s3.multipart.min-file-size")
@ConfigDescription("Minimum file size for an S3 multipart upload")
public HiveS3Config setS3MultipartMinFileSize(DataSize size)
{
  this.s3MultipartMinFileSize = size;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("ldap.user-base-dn")
@ConfigDescription("Base distinguished name of the user. Example: dc=example,dc=com")
public LdapConfig setUserBaseDistinguishedName(String userBaseDistinguishedName)
{
  this.userBaseDistinguishedName = userBaseDistinguishedName;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("atop.time-zone")
@ConfigDescription("The timezone in which the atop data was collected. Generally the timezone of the host.")
public AtopConnectorConfig setTimeZone(String id)
{
  this.timeZone = id;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("atop.executable-read-timeout")
@ConfigDescription("The timeout when reading from the atop process.")
public AtopConnectorConfig setReadTimeout(Duration timeout)
{
  this.readTimeout = timeout;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("task.info-update-interval")
@ConfigDescription("Interval between updating task data")
public TaskManagerConfig setInfoUpdateInterval(Duration infoUpdateInterval)
{
  this.infoUpdateInterval = infoUpdateInterval;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("task.writer-count")
@ConfigDescription("Number of writers per task")
public TaskManagerConfig setWriterCount(int writerCount)
{
  this.writerCount = writerCount;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("resource-groups.max-refresh-interval")
@ConfigDescription("Time period for which the cluster will continue to accept queries after refresh failures cause configuration to become stale")
public DbResourceGroupConfig setMaxRefreshInterval(Duration maxRefreshInterval)
{
  this.maxRefreshInterval = maxRefreshInterval;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("colocated-joins-enabled")
@ConfigDescription("Experimental: Use a colocated join when possible")
public FeaturesConfig setColocatedJoinsEnabled(boolean colocatedJoinsEnabled)
{
  this.colocatedJoinsEnabled = colocatedJoinsEnabled;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("optimizer.max-reordered-joins")
@ConfigDescription("The maximum number of tables to reorder in cost-based join reordering")
public FeaturesConfig setMaxReorderedJoins(int maxReorderedJoins)
{
  this.maxReorderedJoins = maxReorderedJoins;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("hive.metastore.catalog.dir")
@ConfigDescription("Hive file-based metastore catalog directory")
public void setCatalogDirectory(String catalogDirectory)
{
  this.catalogDirectory = catalogDirectory;
}

代码示例来源:origin: prestodb/presto

@Config("transaction.max-finishing-concurrency")
  @ConfigDescription("Maximum parallelism for committing or aborting a transaction")
  public TransactionManagerConfig setMaxFinishingConcurrency(int maxFinishingConcurrency)
  {
    this.maxFinishingConcurrency = maxFinishingConcurrency;
    return this;
  }
}

代码示例来源:origin: prestodb/presto

@Config("testing-warning-collector.add-warnings")
@ConfigDescription("Adds a warning each time getWarnings is called")
public TestingWarningCollectorConfig setAddWarnings(boolean addWarnings)
{
  this.addWarnings = addWarnings;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("query-manager.initialization-required-workers")
@ConfigDescription("Minimum number of workers that must be available before the cluster will accept queries")
public QueryManagerConfig setInitializationRequiredWorkers(int initializationRequiredWorkers)
{
  this.initializationRequiredWorkers = initializationRequiredWorkers;
  return this;
}

代码示例来源:origin: prestodb/presto

@Config("query-manager.required-workers-max-wait")
  @ConfigDescription("Maximum time to wait for minimum number of workers before the query is failed")
  public QueryManagerConfig setRequiredWorkersMaxWait(Duration requiredWorkersMaxWait)
  {
    this.requiredWorkersMaxWait = requiredWorkersMaxWait;
    return this;
  }
}

代码示例来源:origin: prestodb/presto

@Config("jwt.key-file")
@ConfigDescription("Key file used for generating JWT signatures")
public JwtHandlerConfig setJwtKeyFile(File jwtKeyFile)
{
  this.jwtKeyFile = jwtKeyFile;
  return this;
}

代码示例来源:origin: prestodb/presto

@ConfigDescription("Reduces the number of informational messages printed")
@Config("quiet")
public VerifierConfig setQuiet(boolean quiet)
{
  this.quiet = quiet;
  return this;
}

代码示例来源:origin: prestodb/presto

@ConfigDescription("The number of times to repeat each query")
@Config("query-repetitions")
public VerifierConfig setQueryRepetitions(int queryRepetitions)
{
  this.queryRepetitions = queryRepetitions;
  return this;
}

代码示例来源:origin: prestodb/presto

@ConfigDescription("The concurrency level")
@Config("thread-count")
public VerifierConfig setThreadCount(int threadCount)
{
  this.threadCount = threadCount;
  return this;
}

相关文章