This commit is contained in:
2018-09-13 08:11:15 +02:00
parent c6a1291ee6
commit a2e63cca44
7 changed files with 1 additions and 32 deletions

View File

@@ -70,16 +70,6 @@ public class QueryLanguage {
stack.push(new Terminal(ctx.getText(), line, startIndex, stopIndex)); stack.push(new Terminal(ctx.getText(), line, startIndex, stopIndex));
} }
// TODO remove
// @Override
// public void exitPropertyExpression(final PropertyExpressionContext ctx) {
// // System.out.println("property expression");
//
// final Expression value = stack.pop();
// final Terminal property = (Terminal) stack.pop();
//
// stack.push(new Property(property.getValue(), (Terminal) value));
// }
@Override @Override
public void exitNotExpression(final NotExpressionContext ctx) { public void exitNotExpression(final NotExpressionContext ctx) {

View File

@@ -99,7 +99,7 @@ public class ScatterPlot {
dataSeries.add(dataSerie); dataSeries.add(dataSerie);
} }
} catch (final Exception e) { } catch (final Exception e) {
throw new IllegalStateException(e); // TODO handle throw new IllegalStateException(e);
} }
}); });
METRICS_LOGGER.debug("csv generation took: " + (System.nanoTime() - start) / 1_000_000.0 + "ms"); METRICS_LOGGER.debug("csv generation took: " + (System.nanoTime() - start) / 1_000_000.0 + "ms");

View File

@@ -1,10 +0,0 @@
package org.lucares.performance.db;
public class FileCorruptException extends RuntimeException {
private static final long serialVersionUID = -4194021585305770924L;
public FileCorruptException(final String message) {
super(message);
}
}

View File

@@ -2,7 +2,6 @@ package org.lucares.performance.db;
import java.io.Flushable; import java.io.Flushable;
import java.io.IOException; import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Optional; import java.util.Optional;
import org.lucares.pdb.api.Entry; import org.lucares.pdb.api.Entry;
@@ -36,10 +35,6 @@ class PdbWriter implements AutoCloseable, Flushable {
return pdbFile; return pdbFile;
} }
public OffsetDateTime getDateOffset() {
return DateUtils.epochMilliInUTC(lastEpochMilli);
}
public long getDateOffsetAsEpochMilli() { public long getDateOffsetAsEpochMilli() {
return lastEpochMilli; return lastEpochMilli;
} }

View File

@@ -9,7 +9,6 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.SortedSet; import java.util.SortedSet;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import java.util.stream.Stream; import java.util.stream.Stream;
@@ -48,11 +47,6 @@ public class PerformanceDb implements AutoCloseable {
put(entries.iterator()); put(entries.iterator());
} }
public void put(final BlockingQueue<Entry> entries, final Entry poisonObject) throws WriteException {
final BlockingQueueIterator<Entry> iterator = new BlockingQueueIterator<>(entries, poisonObject);
put(iterator);
}
public void put(final Iterator<Entry> entries) throws WriteException { public void put(final Iterator<Entry> entries) throws WriteException {
final BlockingIteratorIterator<Entry> iterator = new BlockingIteratorIterator<>(entries); final BlockingIteratorIterator<Entry> iterator = new BlockingIteratorIterator<>(entries);