de.uni.leipzig.IR15.Benchmark.orientdb
Class OrientDBBenchmark

java.lang.Object
  extended by de.uni.leipzig.IR15.Benchmark.Benchmark
      extended by de.uni.leipzig.IR15.Benchmark.orientdb.OrientDBBenchmark
Direct Known Subclasses:
Query1_LowL_Benchmark, Query2_LowL_Benchmark, Query3_LowL_Benchmark

public abstract class OrientDBBenchmark
extends Benchmark

Abstract Base Class for all benchmarks running on orient graph database. It holds a reference to the database and the word index, it also cares about generating random (and existing) node ids.

Author:
Sascha 'peil' Ludwig

Constructor Summary
OrientDBBenchmark()
           
 
Method Summary
 void afterRun()
          This method is called after each single call of run()
 void beforeRun()
          Find a random start vertex.
 int findMaxWordID()
          Find the maxium word id.
 void setUp()
          Setup the database connection, get the index and get the maximum word id.
 void tearDown()
          This method is called once after the last call of run()
 void warmup()
          This method is called once before the benchmark starts
 
Methods inherited from class de.uni.leipzig.IR15.Benchmark.Benchmark
getCurrentRun, getName, getResults, getRuns, run, setCurrentRun, setRuns
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientDBBenchmark

public OrientDBBenchmark()
Method Detail

setUp

public void setUp()
Setup the database connection, get the index and get the maximum word id.

Specified by:
setUp in class Benchmark

beforeRun

public void beforeRun()
Find a random start vertex.

Specified by:
beforeRun in class Benchmark

afterRun

public void afterRun()
Description copied from class: Benchmark
This method is called after each single call of run()

Specified by:
afterRun in class Benchmark

findMaxWordID

public int findMaxWordID()
Find the maxium word id.

Returns:

tearDown

public void tearDown()
Description copied from class: Benchmark
This method is called once after the last call of run()

Specified by:
tearDown in class Benchmark

warmup

public void warmup()
Description copied from class: Benchmark
This method is called once before the benchmark starts

Specified by:
warmup in class Benchmark