Class StringCacheProviders

java.lang.Object
com.illumon.iris.binarystore.StringCacheProviders

public abstract class StringCacheProviders
extends Object
StringCacheProvider implementations to provide a framework for data ingestion.
  • Method Details

    • getAlwaysCreateStringInstance

      public static StringCacheProvider getAlwaysCreateStringInstance​(boolean unbounded)
      Get an instance that returns a cache that acts more as a factory, and does no caching internally.
      Parameters:
      unbounded - Whether the cache should be unbounded (triggering strict symbol management) or bounded
      Returns:
      The provider instance
    • getDefaultCacheProvider

      public static StringCacheProvider getDefaultCacheProvider​(@NotNull com.fishlib.configuration.Configuration configuration)
      Get a "default" cache provider according to a single capacity property. Determines the default provider from configuration if this hasn't been done already.
      Parameters:
      configuration - The configuration to fetch the capacity property from
      Returns:
      A new StringCacheProviders supplying a cache that makes sense for the configured capacity
    • makeHintDrivenCacheProvider

      public static StringCacheProvider makeHintDrivenCacheProvider​(@NotNull Map<Object,​Object> propertyDictionary, @NotNull com.fishlib.configuration.Configuration configuration, @NotNull String hintDrivenStringCachePrefix)
      Make a "hint-driven" cache provider according to a list of hint to specifier mappings from a configuration.
      Parameters:
      propertyDictionary - A dictionary of properties that should be prioritized over configuration properties, e.g. derived from a DataImportServer's data routing entry
      configuration - The configuration to fetch hint to specifier properties from
      hintDrivenStringCachePrefix - The prefix to use when finding properties
      Returns:
      A new StringCacheProviders encompassing the configured hints