|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.benchmark.byTask.feeds.DocMaker
org.apache.lucene.benchmark.byTask.feeds.LineDocMaker
DocMaker
instead, with content.source=LineDocSource
public class LineDocMaker
A DocMaker reading one line at a time as a Document from a single file. This
saves IO cost (over DirContentSource) of recursing through a directory and
opening a new file for every document. It also re-uses its Document and Field
instance to improve indexing speed.
The expected format of each line is (arguments are separated by <TAB>):
title, date, body. If a line is read in a different format, a
RuntimeException
will be thrown. In general, you should use this doc
maker with files that were created with
WriteLineDocTask
.
Config properties:
Field Summary |
---|
Fields inherited from class org.apache.lucene.benchmark.byTask.feeds.DocMaker |
---|
BODY_FIELD, bodyIndexVal, BYTES_FIELD, config, DATE_FIELD, ID_FIELD, indexProperties, indexVal, NAME_FIELD, reuseFields, source, storeVal, termVecVal, TITLE_FIELD |
Constructor Summary | |
---|---|
LineDocMaker()
Deprecated. |
Method Summary | |
---|---|
void |
setConfig(Config config)
Deprecated. Set the configuration parameters of this doc maker. |
Methods inherited from class org.apache.lucene.benchmark.byTask.feeds.DocMaker |
---|
close, getBytesCount, getDocState, getTotalBytesCount, incrNumDocsCreated, makeDocument, makeDocument, printDocStatistics, resetInputs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineDocMaker()
Method Detail |
---|
public void setConfig(Config config)
DocMaker
setConfig
in class DocMaker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |