Class HorizontalCacheCreator
Object
org.anchoranalysis.feature.session.cache.HorizontalCacheCreator
- All Implemented Interfaces:
CacheCreator
public class HorizontalCacheCreator extends Object implements 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
Constructors Constructor Description HorizontalCacheCreator(FeatureList<? extends FeatureInput> namedFeatures, SharedFeatures sharedFeatures, FeatureInitialization initialization, org.anchoranalysis.core.log.Logger logger) -
Method Summary
Modifier and Type Method Description <T extends FeatureInput>
FeatureCalculationCache<T>create(Class<? extends FeatureInput> inputType)
-
Constructor Details
-
HorizontalCacheCreator
public HorizontalCacheCreator(FeatureList<? extends FeatureInput> namedFeatures, SharedFeatures sharedFeatures, FeatureInitialization initialization, org.anchoranalysis.core.log.Logger logger)
-
-
Method Details
-
create
public <T extends FeatureInput> FeatureCalculationCache<T> create(Class<? extends FeatureInput> inputType)- Specified by:
createin interfaceCacheCreator
-