Class BaseJdbcConfig

java.lang.Object
io.trino.plugin.jdbc.BaseJdbcConfig

public class BaseJdbcConfig extends Object
  • Field Details

  • Constructor Details

    • BaseJdbcConfig

      public BaseJdbcConfig()
  • Method Details

    • getConnectionUrl

      @NotNull @Pattern(regexp="^jdbc:[a-z0-9]+:(?s:.*)$", flags=CASE_INSENSITIVE) public @NotNull @Pattern(regexp="^jdbc:[a-z0-9]+:(?s:.*)$",flags=CASE_INSENSITIVE) String getConnectionUrl()
    • setConnectionUrl

      @Config("connection-url") public BaseJdbcConfig setConnectionUrl(String connectionUrl)
    • getJdbcTypesMappedToVarchar

      public Set<String> getJdbcTypesMappedToVarchar()
    • setJdbcTypesMappedToVarchar

      @Config("jdbc-types-mapped-to-varchar") public BaseJdbcConfig setJdbcTypesMappedToVarchar(String jdbcTypesMappedToVarchar)
    • getMetadataCacheTtl

      @NotNull @MinDuration("0ms") public @NotNull @MinDuration("0ms") io.airlift.units.Duration getMetadataCacheTtl()
    • setMetadataCacheTtl

      @Config("metadata.cache-ttl") public BaseJdbcConfig setMetadataCacheTtl(io.airlift.units.Duration metadataCacheTtl)
    • getSchemaNamesCacheTtl

      @NotNull public @NotNull io.airlift.units.Duration getSchemaNamesCacheTtl()
    • setSchemaNamesCacheTtl

      @Config("metadata.schemas.cache-ttl") public BaseJdbcConfig setSchemaNamesCacheTtl(io.airlift.units.Duration schemaNamesCacheTtl)
    • getTableNamesCacheTtl

      @NotNull public @NotNull io.airlift.units.Duration getTableNamesCacheTtl()
    • setTableNamesCacheTtl

      @Config("metadata.tables.cache-ttl") public BaseJdbcConfig setTableNamesCacheTtl(io.airlift.units.Duration tableNamesCacheTtl)
    • isCacheMissing

      public boolean isCacheMissing()
    • setCacheMissing

      @Config("metadata.cache-missing") public BaseJdbcConfig setCacheMissing(boolean cacheMissing)
    • getCacheMaximumSize

      @Min(1L) public @javax.validation.constraints.Min(1L) long getCacheMaximumSize()
    • setCacheMaximumSize

      @Config("metadata.cache-maximum-size") public BaseJdbcConfig setCacheMaximumSize(long cacheMaximumSize)
    • isCacheMaximumSizeConsistent

      @AssertTrue(message="metadata.cache-ttl must be set to a non-zero value when metadata.cache-maximum-size is set") public @javax.validation.constraints.AssertTrue(message="metadata.cache-ttl must be set to a non-zero value when metadata.cache-maximum-size is set") boolean isCacheMaximumSizeConsistent()
    • isSchemaNamesCacheTtlConsistent

      @AssertTrue(message="metadata.schemas.cache-ttl must not be set when metadata.cache-ttl is not set") public @javax.validation.constraints.AssertTrue(message="metadata.schemas.cache-ttl must not be set when metadata.cache-ttl is not set") boolean isSchemaNamesCacheTtlConsistent()
    • isTableNamesCacheTtlConsistent

      @AssertTrue(message="metadata.tables.cache-ttl must not be set when metadata.cache-ttl is not set") public @javax.validation.constraints.AssertTrue(message="metadata.tables.cache-ttl must not be set when metadata.cache-ttl is not set") boolean isTableNamesCacheTtlConsistent()