Class WriteEnwikiLineDocTask
java.lang.Object
org.apache.lucene.benchmark.byTask.tasks.PerfTask
org.apache.lucene.benchmark.byTask.tasks.WriteLineDocTask
org.apache.lucene.benchmark.byTask.tasks.WriteEnwikiLineDocTask
- All Implemented Interfaces:
Cloneable
A
WriteLineDocTask
which for Wikipedia input, will write category pages to another file,
while remaining pages will be written to the original file. The categories file is derived from
the original file, by adding a prefix "categories-".-
Field Summary
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.WriteLineDocTask
DEFAULT_FIELDS, DEFAULT_SUFFICIENT_FIELDS, FIELDS_HEADER_INDICATOR, fname, SEP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Path
Compose categories line file out of original line filevoid
close()
protected PrintWriter
lineFileOut
(Document doc) Selects output line file by written doc.Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.WriteLineDocTask
doLogic, getLogMessage, setParams, supportsParams, writeHeader
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask
clone, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString
-
Constructor Details
-
WriteEnwikiLineDocTask
- Throws:
Exception
-
-
Method Details
-
categoriesLineFile
Compose categories line file out of original line file -
close
- Overrides:
close
in classWriteLineDocTask
- Throws:
Exception
-
lineFileOut
Description copied from class:WriteLineDocTask
Selects output line file by written doc. Default: original output line file.- Overrides:
lineFileOut
in classWriteLineDocTask
-