Class HorizontalCacheCreator
Object
HorizontalCacheCreator
- All Implemented Interfaces:
CacheCreator
Creates a
FeatureCalculationCache
which caches the results of calls to features, even if
the same feature appears multiple times, directly or indirectly.
One feature may indirectly call another feature when calculating, or explicitly by reference.
It is termed horizontal as it does not cache computations between successive inputs, but rather for the same input across multiple features.
- Author:
- Owen
-
Constructor Summary
ConstructorsConstructorDescriptionHorizontalCacheCreator
(FeatureList<? extends FeatureInput> namedFeatures, SharedFeatures sharedFeatures, FeatureInitialization initialization, Logger logger) Creates a newHorizontalCacheCreator
instance. -
Method Summary
Modifier and TypeMethodDescription<T extends FeatureInput>
FeatureCalculationCache<T> create
(Class<? extends FeatureInput> inputType) Creates aFeatureCalculationCache
that accepts a particular input type.
-
Constructor Details
-
Method Details
-
create
public <T extends FeatureInput> FeatureCalculationCache<T> create(Class<? extends FeatureInput> inputType) Description copied from interface:CacheCreator
Creates aFeatureCalculationCache
that accepts a particular input type.- Specified by:
create
in interfaceCacheCreator
- Type Parameters:
T
- the input-type.- Parameters:
inputType
- the class corresponding to<T>
.- Returns:
- a newly created instantiation of
FeatureCalculationCache
.
-