Class SQLStatementCacheBuilder

java.lang.Object
org.apache.shardingsphere.infra.parser.cache.SQLStatementCacheBuilder

public final class SQLStatementCacheBuilder extends Object
SQL statement cache builder.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.github.benmanes.caffeine.cache.LoadingCache<String,org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>
    build(String databaseType, org.apache.shardingsphere.sql.parser.api.CacheOption sqlStatementCacheOption, org.apache.shardingsphere.sql.parser.api.CacheOption parseTreeCacheOption, boolean isParseComment)
    Build SQL statement cache.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SQLStatementCacheBuilder

      public SQLStatementCacheBuilder()
  • Method Details

    • build

      public static com.github.benmanes.caffeine.cache.LoadingCache<String,org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement> build(String databaseType, org.apache.shardingsphere.sql.parser.api.CacheOption sqlStatementCacheOption, org.apache.shardingsphere.sql.parser.api.CacheOption parseTreeCacheOption, boolean isParseComment)
      Build SQL statement cache.
      Parameters:
      sqlStatementCacheOption - SQL statement cache option
      parseTreeCacheOption - parse tree cache option
      isParseComment - is parse comment
      databaseType - database type
      Returns:
      built SQL statement cache