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 newHorizontalCacheCreatorinstance. -
Method Summary
Modifier and TypeMethodDescription<T extends FeatureInput>
FeatureCalculationCache<T> create(Class<? extends FeatureInput> inputType) Creates aFeatureCalculationCachethat 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:CacheCreatorCreates aFeatureCalculationCachethat accepts a particular input type.- Specified by:
createin interfaceCacheCreator- Type Parameters:
T- the input-type.- Parameters:
inputType- the class corresponding to<T>.- Returns:
- a newly created instantiation of
FeatureCalculationCache.
-