Package org.apache.calcite.jdbc
Interface CachingCalciteSchema.Cached<T>
-
- Type Parameters:
T
- Type of cached object
- All Known Implementing Classes:
CachingCalciteSchema.AbstractCached
- Enclosing class:
- CachingCalciteSchema
private static interface CachingCalciteSchema.Cached<T>
Strategy for caching the value of an object and re-creating it if its value is out of date as of a given timestamp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
build()
Creates a new value.void
enable(long now, boolean enabled)
Called when CalciteSchema caching is enabled or disabled.T
get(long now)
Returns the value; uses cached value if valid.
-