Class SimpleTemporalMapper

    • Constructor Detail

      • SimpleTemporalMapper

        public SimpleTemporalMapper()
    • Method Detail

      • getFirstProperty

        protected String getFirstProperty​(String expression)
        Extracts first property (beginDate) from metric expression.
        Parameters:
        expression - , The metric expression
        Returns:
        first property of metric expression as string
      • getSecondProperty

        protected String getSecondProperty​(String expression)
        Extracts second property (machineID) from metric expression.
        Parameters:
        expression - , The metric expression
        Returns:
        second property of metric expression as string
      • orderByBeginDate

        protected TreeMap<String,​Set<Instance>> orderByBeginDate​(ACache cache,
                                                                       String expression,
                                                                       String kbType)
        Orders a cache of instances based on their begin date property. For each instance, it retrieves its begin date property, converts its value to an epoch (string) using the SimpleDateFormat function and places the instance inside the corresponding set("bucket") of instances.
        Parameters:
        cache - , the cache of instances
        expression - , the metric expression
        kbType - , source or target
        Returns:
        blocks, a map of sets with unique begin dates as keys and set of instances as values