Package org.apache.calcite.rel.metadata
Class CachingRelMetadataProvider.CachingInvocationHandler
- java.lang.Object
-
- org.apache.calcite.rel.metadata.CachingRelMetadataProvider.CachingInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
- Enclosing class:
- CachingRelMetadataProvider
private class CachingRelMetadataProvider.CachingInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
Implementation ofInvocationHandler
for calls to aCachingRelMetadataProvider
. Each request first looks in the cache; if the cache entry is present and not expired, returns the cache entry, otherwise computes the value and stores in the cache.
-
-
Constructor Summary
Constructors Constructor Description CachingInvocationHandler(Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
-