Class Preprocessor


  • public class Preprocessor
    extends Object
    This class is used to apply preprocessing functions to caches
    Author:
    Daniel Obraczka
    • Constructor Detail

      • Preprocessor

        public Preprocessor()
    • Method Detail

      • applyFunctionsToCache

        public static ACache applyFunctionsToCache​(ACache cache,
                                                   Map<String,​Map<String,​String>> functions)
        Parameters:
        cache - cache that should be processed
        functions - preprocessing functions that will be applied
        Returns:
        cache with instances on which the preprocessing functions where applied
      • applyFunctionsToCache

        public static ACache applyFunctionsToCache​(ACache cache,
                                                   Map<String,​Map<String,​String>> functions,
                                                   boolean cloneCache)
        Parameters:
        cache - cache that should be processed
        functions - preprocessing functions that will be applied
        cloneCache - if true, the cache will be cloned and the given cache is left as is
        Returns:
        cache with instances on which the preprocessing functions where applied, if cloneCache was set to true this a different cache than the provided
      • applyRenameIfNecessary

        public static void applyRenameIfNecessary​(Instance inst,
                                                  String property,
                                                  String propertyDub)
      • getFunctionId

        public static String getFunctionId​(String argString)