public class WriteLineDocTask extends PerfTask
LineDocSource and is intended
to save the IO overhead of opening a file per document to be indexed.
The format of the output is set according to the output file extension.
Compression is recommended when the output file is expected to be large.
See info on file extensions in
StreamUtils.Type
Supports the following parameters:
DEFAULT_FIELDS).
DEFAULT_SUFFICIENT_FIELDS).
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_FIELDS
Fields to be written by default
|
static String |
DEFAULT_SUFFICIENT_FIELDS
Default fields which at least one of them is required to not skip the doc.
|
static String |
FIELDS_HEADER_INDICATOR |
static char |
SEP |
| Constructor and Description |
|---|
WriteLineDocTask(PerfRunData runData) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
doLogic()
Perform the task once (ignoring repetitions specification)
Return number of work items done by this task.
|
protected String |
getLogMessage(int recsCount) |
void |
setParams(String params)
Set the params (docSize only)
|
boolean |
supportsParams()
Sub classes that support parameters must override this method to return
true.
|
clone, getBackgroundDeltaPriority, getDepth, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toStringpublic static final String FIELDS_HEADER_INDICATOR
public static final char SEP
public static final String[] DEFAULT_FIELDS
public static final String DEFAULT_SUFFICIENT_FIELDS
public WriteLineDocTask(PerfRunData runData) throws Exception
Exceptionprotected String getLogMessage(int recsCount)
getLogMessage in class PerfTaskpublic int doLogic()
throws Exception
PerfTaskpublic void setParams(String params)
public boolean supportsParams()
PerfTasksupportsParams in class PerfTask