From ec58cd328f1f3da1ec206fb46de06ca1720300c9 Mon Sep 17 00:00:00 2001 From: aivanov Date: Wed, 12 Apr 2017 21:25:51 +0300 Subject: [PATCH] reverted --- pom.xml | 4 ++-- .../reader/graphite/evaluation/TargetEvaluator.java | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index e04e608e..360a5e44 100644 --- a/pom.xml +++ b/pom.xml @@ -132,8 +132,8 @@ maven-compiler-plugin 3.1 - 1.8 - 1.8 + 1.7 + 1.7 diff --git a/src/main/java/net/iponweb/disthene/reader/graphite/evaluation/TargetEvaluator.java b/src/main/java/net/iponweb/disthene/reader/graphite/evaluation/TargetEvaluator.java index d5c5e3b3..01b38c99 100644 --- a/src/main/java/net/iponweb/disthene/reader/graphite/evaluation/TargetEvaluator.java +++ b/src/main/java/net/iponweb/disthene/reader/graphite/evaluation/TargetEvaluator.java @@ -17,9 +17,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import java.util.Set; import java.util.concurrent.ExecutionException; -import java.util.stream.Collectors; /** * @author Andrei Ivanov @@ -74,14 +72,6 @@ public List bootstrap(Target target, List original, long List bootstrapped = new ArrayList<>(); bootstrapped.addAll(eval(target.previous(period))); - Set bootstrappedSeries = bootstrapped.stream().map(TimeSeries::getName).collect(Collectors.toSet()); - - for (TimeSeries ts : original.stream().filter(originalTs -> !bootstrappedSeries.contains(originalTs.getName())).collect(Collectors.toList())) { - TimeSeries emptyTimeSeries = getEmptyTimeSeries(ts.getFrom() - period, ts.getFrom() - 1); - emptyTimeSeries.setName(ts.getName()); - bootstrapped.add(emptyTimeSeries); - } - if (bootstrapped.size() != original.size()) throw new InvalidNumberOfSeriesException(); if (!TimeSeriesUtils.checkAlignment(bootstrapped)) throw new TimeSeriesNotAlignedException();