org.apache.lucene.benchmark.byTask.utils
public class Config extends Object
Constructor Summary | |
---|---|
Config(Reader algReader)
Read both algorithm and config properties. | |
Config(Properties props)
Create config without algorithm - usefull for a programmatic perf test. |
Method Summary | |
---|---|
String | get(String name, String dflt)
Return a string property. |
int | get(String name, int dflt)
Return an int property.
|
boolean | get(String name, boolean dflt)
Return a boolean 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.
|
Parameters: algReader from where to read algorithm and config properties.
Throws: IOException
Parameters: props - configuration properties.
Throws: IOException
Parameters: name name of property. dflt default value.
Returns: a string property.
Parameters: name name of property dflt default value
Returns: a int property.
Parameters: name name of property dflt default value
Returns: a int property.
Returns: Returns the algorithmText.
Returns: names of params set by round, for reports title
Returns: values of params set by round, for reports lines.
Returns: the round number.
Returns: the new round number.
Parameters: name name of property. value either single or multiple propery value (multple values are separated by ":")
Throws: Exception