public class EvalConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANALYSIS_DIR_PROPERTY |
static java.lang.String |
DATA_DIR_PROPERTY |
static java.lang.String |
EVAL_SCRIPT_PROPERTY |
static java.lang.String |
EVAL_SCRIPTFILES_PROPERTY |
static java.lang.String |
FORCE_PROPERTY |
static java.lang.String |
SCRIPT_DIR_PROPERTY |
static java.lang.String |
SKIP_PROPERTY |
static java.lang.String |
THREAD_COUNT_PROPERTY |
Constructor and Description |
---|
EvalConfig(java.util.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.
|
java.lang.String |
get(java.lang.String key)
Get the value of a property.
|
java.lang.String |
get(java.lang.String key,
java.lang.String defaultValue)
Get the value of a property.
|
java.lang.String |
getAnalysisDir()
Get the analysis directory for this evaluation.
|
java.lang.String |
getDataDir()
Get the data directory for this evaluation.
|
java.lang.String |
getScript()
Get the script for this evaluation.
|
java.lang.String |
getScriptDir()
Get the data directory for this evaluation.
|
int |
getThreadCount() |
public static final java.lang.String FORCE_PROPERTY
public static final java.lang.String SKIP_PROPERTY
public static final java.lang.String EVAL_SCRIPT_PROPERTY
public static final java.lang.String EVAL_SCRIPTFILES_PROPERTY
public static final java.lang.String SCRIPT_DIR_PROPERTY
public static final java.lang.String DATA_DIR_PROPERTY
public static final java.lang.String ANALYSIS_DIR_PROPERTY
public static final java.lang.String THREAD_COUNT_PROPERTY
public EvalConfig(@Nonnull java.util.Map props)
props
- The properties to use.public java.lang.String get(java.lang.String key, @Nullable java.lang.String defaultValue)
key
- The name of the propertydefaultValue
- The value to return if no such keypublic java.lang.String get(java.lang.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 java.lang.String getScript()
public java.lang.String getDataDir()
public java.lang.String getScriptDir()
public java.lang.String getAnalysisDir()
public int getThreadCount()