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
public class WriteEnwikiLineDocTask extends WriteLineDocTask
AWriteLineDocTask
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
Constructors Constructor Description WriteEnwikiLineDocTask(PerfRunData runData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Path
categoriesLineFile(Path f)
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 Detail
-
WriteEnwikiLineDocTask
public WriteEnwikiLineDocTask(PerfRunData runData) throws Exception
- Throws:
Exception
-
-
Method Detail
-
categoriesLineFile
public static Path categoriesLineFile(Path f)
Compose categories line file out of original line file
-
close
public void close() throws Exception
- Overrides:
close
in classWriteLineDocTask
- Throws:
Exception
-
lineFileOut
protected PrintWriter lineFileOut(Document doc)
Description copied from class:WriteLineDocTask
Selects output line file by written doc. Default: original output line file.- Overrides:
lineFileOut
in classWriteLineDocTask
-
-