Class CachingTransientStoreFactory
java.lang.Object
org.apache.drill.exec.coord.store.CachingTransientStoreFactory
- All Implemented Interfaces:
AutoCloseable
,TransientStoreFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<V> TransientStore<V>
getOrCreateStore
(TransientStoreConfig<V> config) Returns atransient store
instance for the given configuration.static TransientStoreFactory
of
(TransientStoreFactory delegate)
-
Constructor Details
-
CachingTransientStoreFactory
-
-
Method Details
-
getOrCreateStore
Description copied from interface:TransientStoreFactory
Returns atransient store
instance for the given configuration. Note that implementors have liberty to cache previousstore
instances.- Specified by:
getOrCreateStore
in interfaceTransientStoreFactory
- Type Parameters:
V
- store value type- Parameters:
config
- store configuration
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
of
-