Class HorizontalCacheCreator

Object
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 Details

    • HorizontalCacheCreator

      public HorizontalCacheCreator(FeatureList<? extends FeatureInput> namedFeatures, SharedFeatures sharedFeatures, FeatureInitialization initialization, Logger logger)
      Creates a new HorizontalCacheCreator instance.
      Parameters:
      namedFeatures - A super set of named-features, from which those compatible with the input-type are used in each created cache.
      sharedFeatures - The shared-features to use for initialization.
      initialization - What to initialize features with.
      logger - The logger for writing informative messages or errors.
  • Method Details