org.apache.mahout.benchmark
Class BenchmarkRunner.BenchmarkFn

java.lang.Object
  extended by org.apache.mahout.benchmark.BenchmarkRunner.BenchmarkFn
All Implemented Interfaces:
com.google.common.base.Function<Integer,Boolean>
Enclosing class:
BenchmarkRunner

public abstract static class BenchmarkRunner.BenchmarkFn
extends Object
implements com.google.common.base.Function<Integer,Boolean>


Constructor Summary
BenchmarkRunner.BenchmarkFn()
           
 
Method Summary
protected  boolean depends(Vector v)
          Adds a random data dependency so that JVM does not remove dead code.
protected  boolean randBool()
           
protected  int randIndex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
apply, equals
 

Constructor Detail

BenchmarkRunner.BenchmarkFn

public BenchmarkRunner.BenchmarkFn()
Method Detail

randIndex

protected int randIndex()

randBool

protected boolean randBool()

depends

protected boolean depends(Vector v)
Adds a random data dependency so that JVM does not remove dead code.



Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.