Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » benchmark » byTask » utils » [javadoc | source]
org.apache.lucene.benchmark.byTask.utils
public class: Config [javadoc | source]
java.lang.Object
   org.apache.lucene.benchmark.byTask.utils.Config
Perf run configuration properties.

Numeric property containing ":", e.g. "10:100:5" is interpreted as array of numeric values. It is extracted once, on first use, and maintain a round number to return the appropriate value.

The config property "work.dir" tells where is the root of docs data dirs and indexes dirs. It is set to either of:

Constructor:
 public Config(Reader algReader) throws IOException 
    Read both algorithm and config properties.
    Parameters:
    algReader - from where to read algorithm and config properties.
    Throws:
    IOException -
 public Config(Properties props) 
    Create config without algorithm - useful for a programmatic perf test.
    Parameters:
    props - - configuration properties.
    Throws:
    IOException -
Method from org.apache.lucene.benchmark.byTask.utils.Config Summary:
get,   get,   get,   get,   getAlgorithmText,   getColsNamesForValsByRound,   getColsValuesForValsByRound,   getRoundNumber,   newRound,   set
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.benchmark.byTask.utils.Config Detail:
 public String get(String name,
    String dflt) 
    Return a string property.
 public int get(String name,
    int dflt) 
    Return an int property. If the property contain ":", e.g. "10:100:5", it is interpreted as array of ints. It is extracted once, on first call to get() it, and a by-round-value is returned.
 public double get(String name,
    double dflt) 
    Return a double property. If the property contain ":", e.g. "10:100:5", it is interpreted as array of doubles. It is extracted once, on first call to get() it, and a by-round-value is returned.
 public boolean get(String name,
    boolean dflt) 
    Return a boolean property. If the property contain ":", e.g. "true.true.false", it is interpreted as array of booleans. It is extracted once, on first call to get() it, and a by-round-value is returned.
 public String getAlgorithmText() 
 public String getColsNamesForValsByRound() 
 public String getColsValuesForValsByRound(int roundNum) 
 public int getRoundNumber() 
 public int newRound() 
    Increment the round number, for config values that are extracted by round number.
 public  void set(String name,
    String value) throws Exception 
    Set a property. Note: once a multiple values property is set, it can no longer be modified.