Package io.trino.benchmark
Class JsonAvgBenchmarkResultWriter
- java.lang.Object
-
- io.trino.benchmark.JsonAvgBenchmarkResultWriter
-
- All Implemented Interfaces:
BenchmarkResultHook
public class JsonAvgBenchmarkResultWriter extends Object implements BenchmarkResultHook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonAvgBenchmarkResultWriter.BuildResult
-
Field Summary
Fields Modifier and Type Field Description longtotalElapsedMillislongtotalInputMegabyteslongtotalInputMegabytesPerSecondlongtotalInputRowslongtotalInputRowsPerSecondlongtotalOutputRowslongtotalOutputRowsPerSecond
-
Constructor Summary
Constructors Constructor Description JsonAvgBenchmarkResultWriter(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BenchmarkResultHookaddResults(Map<String,Long> results)voidfinished()
-
-
-
Field Detail
-
totalElapsedMillis
public long totalElapsedMillis
-
totalInputRows
public long totalInputRows
-
totalInputRowsPerSecond
public long totalInputRowsPerSecond
-
totalOutputRows
public long totalOutputRows
-
totalOutputRowsPerSecond
public long totalOutputRowsPerSecond
-
totalInputMegabytes
public long totalInputMegabytes
-
totalInputMegabytesPerSecond
public long totalInputMegabytesPerSecond
-
-
Constructor Detail
-
JsonAvgBenchmarkResultWriter
public JsonAvgBenchmarkResultWriter(OutputStream outputStream)
-
-
Method Detail
-
addResults
public BenchmarkResultHook addResults(Map<String,Long> results)
- Specified by:
addResultsin interfaceBenchmarkResultHook
-
finished
public void finished()
- Specified by:
finishedin interfaceBenchmarkResultHook
-
-