public final class PrepareCache extends LinkedHashMap<String,CachedPrepareResultPacket> implements com.singlestore.jdbc.client.PrepareCache
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PrepareCache(int size,
StandardClient con)
LRU prepare cache constructor
|
| Modifier and Type | Method and Description |
|---|---|
CachedPrepareResultPacket |
get(Object key) |
Prepare |
get(String key,
BasePreparedStatement preparedStatement)
Get cache value for key
|
Prepare |
put(String key,
Prepare result,
BasePreparedStatement preparedStatement)
Add a prepare cache value
|
CachedPrepareResultPacket |
put(String key,
PrepareResultPacket result)
NOT USED
|
boolean |
removeEldestEntry(Map.Entry<String,CachedPrepareResultPacket> eldest) |
void |
reset()
Reset cache
|
clear, containsValue, entrySet, forEach, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic PrepareCache(int size,
StandardClient con)
size - cache sizecon - clientpublic boolean removeEldestEntry(Map.Entry<String,CachedPrepareResultPacket> eldest)
removeEldestEntry in class LinkedHashMap<String,CachedPrepareResultPacket>public Prepare get(String key, BasePreparedStatement preparedStatement)
com.singlestore.jdbc.client.PrepareCacheget in interface com.singlestore.jdbc.client.PrepareCachekey - keypreparedStatement - prepared statementpublic Prepare put(String key, Prepare result, BasePreparedStatement preparedStatement)
com.singlestore.jdbc.client.PrepareCacheput in interface com.singlestore.jdbc.client.PrepareCachekey - keyresult - valuepreparedStatement - prepared statementpublic CachedPrepareResultPacket get(Object key)
get in interface Map<String,CachedPrepareResultPacket>get in class LinkedHashMap<String,CachedPrepareResultPacket>public CachedPrepareResultPacket put(String key, PrepareResultPacket result)
key - keyresult - resultspublic void reset()
com.singlestore.jdbc.client.PrepareCachereset in interface com.singlestore.jdbc.client.PrepareCacheCopyright © 2025 SingleStore. All rights reserved.