Class SQLStatementCacheLoader

java.lang.Object
org.apache.shardingsphere.infra.parser.cache.SQLStatementCacheLoader
All Implemented Interfaces:
com.github.benmanes.caffeine.cache.AsyncCacheLoader<String,org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>, com.github.benmanes.caffeine.cache.CacheLoader<String,org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>

public final class SQLStatementCacheLoader extends Object implements com.github.benmanes.caffeine.cache.CacheLoader<String,org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>
SQL statement cache loader.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SQLStatementCacheLoader(String databaseType, org.apache.shardingsphere.sql.parser.api.CacheOption parseTreeCacheOption, boolean isParseComment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement
    load(String sql)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.benmanes.caffeine.cache.CacheLoader

    asyncLoad, asyncLoadAll, asyncReload, loadAll, reload
  • Constructor Details

    • SQLStatementCacheLoader

      public SQLStatementCacheLoader(String databaseType, org.apache.shardingsphere.sql.parser.api.CacheOption parseTreeCacheOption, boolean isParseComment)
  • Method Details

    • load

      @ParametersAreNonnullByDefault public org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement load(String sql)
      Specified by:
      load in interface com.github.benmanes.caffeine.cache.CacheLoader<String,org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement>