Class ReportTask
java.lang.Object
org.apache.lucene.benchmark.byTask.tasks.PerfTask
org.apache.lucene.benchmark.byTask.tasks.ReportTask
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
RepAllTask,RepSumByNameRoundTask,RepSumByNameTask,RepSumByPrefTask
Report (abstract) task - all report tasks extend this task.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String[]protected static final Stringprotected static final Stringprotected static final StringGet a textual summary of the benchmark results, average from all test runs.protected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReportgenPartialReport(int reported, LinkedHashMap<String, TaskStats> partOfTasks, int totalSize) protected Stringfind the longest op name out of completed tasks.protected booleanTasks that should never log at start can override this.protected booleanTasks that should not record statistics can override this.protected StringtableTitle(String longestOp) Compute a title line for a report tableprotected StringtaskReportLine(String longestOp, TaskStats stat) Compute a report line for the given task stat.Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask
clone, close, doLogic, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setParams, setRunInBackground, setup, stopNow, supportsParams, tearDown, toString
-
Field Details
-
newline
-
OP
Get a textual summary of the benchmark results, average from all test runs.- See Also:
-
ROUND
- See Also:
-
RUNCNT
- See Also:
-
RECCNT
- See Also:
-
RECSEC
- See Also:
-
ELAPSED
- See Also:
-
USEDMEM
- See Also:
-
TOTMEM
- See Also:
-
COLS
-
-
Constructor Details
-
ReportTask
-
-
Method Details
-
shouldNeverLogAtStart
protected boolean shouldNeverLogAtStart()Description copied from class:PerfTaskTasks that should never log at start can override this.- Overrides:
shouldNeverLogAtStartin classPerfTask- Returns:
- true if this task should never log when it start.
-
shouldNotRecordStats
protected boolean shouldNotRecordStats()Description copied from class:PerfTaskTasks that should not record statistics can override this.- Overrides:
shouldNotRecordStatsin classPerfTask- Returns:
- true if this task should never record its statistics.
-
tableTitle
Compute a title line for a report table- Parameters:
longestOp- size of longest op name in the table- Returns:
- the table title line.
-
longestOp
find the longest op name out of completed tasks.- Parameters:
taskStats- completed tasks to be considered.- Returns:
- the longest op name out of completed tasks.
-
taskReportLine
Compute a report line for the given task stat.- Parameters:
longestOp- size of longest op name in the table.stat- task stat to be printed.- Returns:
- the report line.
-
genPartialReport
protected Report genPartialReport(int reported, LinkedHashMap<String, TaskStats> partOfTasks, int totalSize)
-