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 SQLStatementCacheBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
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 optionparseTreeCacheOption- parse tree cache optionisParseComment- is parse commentdatabaseType- database type- Returns:
- built SQL statement cache
-
-