|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.benchmark.byTask.tasks.PerfTask org.apache.lucene.benchmark.byTask.tasks.NewLocaleTask
public class NewLocaleTask
Set a Locale
for use in benchmarking.
Locales can be specified in the following ways:
de
: Language "de"
en,US
: Language "en", country "US"
no,NO,NY
: Language "no", country "NO", variant "NY"
ROOT
: The root (language-agnostic) Locale
Field Summary |
---|
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
NewLocaleTask(PerfRunData runData)
Create a new Locale and set it it in the getRunData() for
use by all future tasks. |
Method Summary | |
---|---|
int |
doLogic()
Perform the task once (ignoring repetitions specification) Return number of work items done by this task. |
void |
setParams(String params)
Set the params of this task. |
boolean |
supportsParams()
Sub classes that supports parameters must override this method to return true. |
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
clone, close, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NewLocaleTask(PerfRunData runData)
Locale
and set it it in the getRunData() for
use by all future tasks.
Method Detail |
---|
public int doLogic() throws Exception
PerfTask
doLogic
in class PerfTask
Exception
public void setParams(String params)
PerfTask
setParams
in class PerfTask
public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |