|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.benchmark.byTask.utils.Config
public class 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 Summary | |
|---|---|
Config(java.util.Properties props)
Create config without algorithm - useful for a programmatic perf test. |
|
Config(java.io.Reader algReader)
Read both algorithm and config properties. |
|
| Method Summary | |
|---|---|
boolean |
get(java.lang.String name,
boolean dflt)
Return a boolean property. |
double |
get(java.lang.String name,
double dflt)
Return a double property. |
int |
get(java.lang.String name,
int dflt)
Return an int property. |
java.lang.String |
get(java.lang.String name,
java.lang.String dflt)
Return a string property. |
java.lang.String |
getAlgorithmText()
|
java.lang.String |
getColsNamesForValsByRound()
|
java.lang.String |
getColsValuesForValsByRound(int roundNum)
|
int |
getRoundNumber()
|
int |
newRound()
Increment the round number, for config values that are extracted by round number. |
void |
set(java.lang.String name,
java.lang.String value)
Set a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Config(java.io.Reader algReader)
throws java.io.IOException
algReader - from where to read algorithm and config properties.
java.io.IOExceptionpublic Config(java.util.Properties props)
props - - configuration properties.
java.io.IOException| Method Detail |
|---|
public java.lang.String get(java.lang.String name,
java.lang.String dflt)
name - name of property.dflt - default value.
public void set(java.lang.String name,
java.lang.String value)
throws java.lang.Exception
name - name of property.value - either single or multiple property value (multiple values are separated by ":")
java.lang.Exception
public int get(java.lang.String name,
int dflt)
name - name of propertydflt - default value
public double get(java.lang.String name,
double dflt)
name - name of propertydflt - default value
public boolean get(java.lang.String name,
boolean dflt)
name - name of propertydflt - default value
public int newRound()
public java.lang.String getColsNamesForValsByRound()
public java.lang.String getColsValuesForValsByRound(int roundNum)
public int getRoundNumber()
public java.lang.String getAlgorithmText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||