Class SQLStatementCacheBuilder
java.lang.Object
org.apache.shardingsphere.infra.parser.cache.SQLStatementCacheBuilder
SQL statement cache builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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:
databaseType- database typesqlStatementCacheOption- SQL statement cache optionparseTreeCacheOption- parse tree cache optionisParseComment- is parse comment- Returns:
- built SQL statement cache
-