Class SQLStatementCacheBuilder


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

      • SQLStatementCacheBuilder

        public SQLStatementCacheBuilder()
    • Method Detail

      • 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