public final class StatementCache extends Object
SYNCHRONIZATION: This object is safe to use over multiple threads.
Constructor and Description |
---|
StatementCache(DatabaseSystem system,
int hash_size,
int max_size,
int clean_percentage)
Constructs the cache.
|
Modifier and Type | Method and Description |
---|---|
DebugLogger |
Debug()
Returns a DebugLogger object we can use to log debug messages.
|
StatementTree |
get(String query_string)
Gets a StatementTree for the query string if it is stored in the cache.
|
void |
put(String query_string,
StatementTree statement_tree)
Puts a new query string/StatementTree into the cache.
|
public StatementCache(DatabaseSystem system, int hash_size, int max_size, int clean_percentage)
public final DebugLogger Debug()
public void put(String query_string, StatementTree statement_tree)
public StatementTree get(String query_string)
Copyright © 2015. All rights reserved.