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