Merge branch 'master' of https://bitbucket.com/andreashuber/performance
This commit is contained in:
@@ -26,6 +26,7 @@ import org.lucares.pdb.plot.api.AggregatorCollection;
|
|||||||
import org.lucares.pdb.plot.api.Limit;
|
import org.lucares.pdb.plot.api.Limit;
|
||||||
import org.lucares.pdb.plot.api.PlotSettings;
|
import org.lucares.pdb.plot.api.PlotSettings;
|
||||||
import org.lucares.performance.db.PerformanceDb;
|
import org.lucares.performance.db.PerformanceDb;
|
||||||
|
import org.lucares.utils.file.FileUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@@ -142,7 +143,7 @@ public class Plotter {
|
|||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new InternalPlottingException("Plotting failed: " + e.getMessage(), e);
|
throw new InternalPlottingException("Plotting failed: " + e.getMessage(), e);
|
||||||
} finally {
|
} finally {
|
||||||
// XXX TODO revert: FileUtils.delete(tmpDir);
|
FileUtils.delete(tmpDir);
|
||||||
LOGGER.trace("done plot");
|
LOGGER.trace("done plot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,16 @@ import org.lucares.utils.Preconditions;
|
|||||||
|
|
||||||
public final class CsvReaderSettings {
|
public final class CsvReaderSettings {
|
||||||
|
|
||||||
|
public static String stripPrefixDefault(final String value) {
|
||||||
|
if (value.startsWith("Default")) {
|
||||||
|
return value.replaceFirst("Default", "");
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
public enum PostProcessors {
|
public enum PostProcessors {
|
||||||
LOWER_CASE(String::toLowerCase), STRIP(String::trim);
|
LOWER_CASE(String::toLowerCase), STRIP(String::trim),
|
||||||
|
STRIP_PREFIX_DEFAULT(CsvReaderSettings::stripPrefixDefault);
|
||||||
|
|
||||||
private final Function<String, String> function;
|
private final Function<String, String> function;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user