de.uni.leipzig.IR15.Benchmark.neo4j
Class Neo4jBenchmark

java.lang.Object
  extended by de.uni.leipzig.IR15.Benchmark.Benchmark
      extended by de.uni.leipzig.IR15.Benchmark.neo4j.Neo4jBenchmark
Direct Known Subclasses:
CypherBenchmark, Query1_Native_Benchmark, Query2_Native_Benchmark, Query3_Native_Benchmark, TraverserBenchmark

public abstract class Neo4jBenchmark
extends Benchmark

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

Author:
Martin 's1ck' Junghanns

Constructor Summary
Neo4jBenchmark()
           
 
Method Summary
 void afterRun()
          This method is called after each single call of run()
 void beforeRun()
          Get a random node before each run.
 void setUp()
          Setup the database connection and get the max w_id.
 void tearDown()
          Cleanup after running benchmarks.
 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

Neo4jBenchmark

public Neo4jBenchmark()
Method Detail

setUp

public void setUp()
Setup the database connection and get the max w_id.

Specified by:
setUp in class Benchmark

beforeRun

public void beforeRun()
Get a random node before each run.

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

tearDown

public void tearDown()
Cleanup after running benchmarks.

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