public class EvalConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANALYSIS_DIR_PROPERTY |
static String |
DATA_DIR_PROPERTY |
static String |
EVAL_SCRIPT_PROPERTY |
static String |
EVAL_SCRIPTFILES_PROPERTY |
static String |
FORCE_PROPERTY |
static String |
SCRIPT_DIR_PROPERTY |
static String |
SKIP_PROPERTY |
static String |
THREAD_COUNT_PROPERTY |
Constructor and Description |
---|
EvalConfig(Map props)
Construct a new eval config using the specified properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
force()
Query whether the script should run in “force” mode.
|
String |
get(String key)
Get the value of a property.
|
String |
get(String key,
String defaultValue)
Get the value of a property.
|
String |
getAnalysisDir()
Get the analysis directory for this evaluation.
|
String |
getDataDir()
Get the data directory for this evaluation.
|
String |
getScript()
Get the script for this evaluation.
|
String |
getScriptDir()
Get the data directory for this evaluation.
|
int |
getThreadCount() |
public static final String FORCE_PROPERTY
public static final String SKIP_PROPERTY
public static final String EVAL_SCRIPT_PROPERTY
public static final String EVAL_SCRIPTFILES_PROPERTY
public static final String SCRIPT_DIR_PROPERTY
public static final String DATA_DIR_PROPERTY
public static final String ANALYSIS_DIR_PROPERTY
public static final String THREAD_COUNT_PROPERTY
public String get(String key, @Nullable String defaultValue)
key
- The name of the propertydefaultValue
- The value to return if no such keypublic String get(String key)
key
- The name of the propertynull
if there is no such keypublic boolean force()
true
if the script should run in force mode.public String getScript()
public String getDataDir()
public String getScriptDir()
public String getAnalysisDir()
public int getThreadCount()