com.carrotsearch.junitbenchmarks.h2
Class H2Consumer
java.lang.Object
com.carrotsearch.junitbenchmarks.AutocloseConsumer
com.carrotsearch.junitbenchmarks.h2.H2Consumer
- All Implemented Interfaces:
- IResultsConsumer, Closeable
public final class H2Consumer
- extends AutocloseConsumer
- implements Closeable
IResultsConsumer
that appends records to a H2 database.
Method Summary |
void |
accept(Result result)
Accept a single benchmark result. |
void |
close()
Close the database connection and finalize transaction. |
void |
rollback()
Rollback all performed operations on request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
H2Consumer
public H2Consumer()
H2Consumer
public H2Consumer(File dbFileName)
H2Consumer
public H2Consumer(File dbFileName,
File chartsDir,
String customKeyValue)
accept
public void accept(Result result)
- Accept a single benchmark result.
- Specified by:
accept
in interface IResultsConsumer
close
public void close()
- Close the database connection and finalize transaction.
- Specified by:
close
in interface Closeable
rollback
public void rollback()
- Rollback all performed operations on request.
Copyright © 2011 Carrot Search s.c.. All Rights Reserved.