Package org.apache.lucene.benchmark.byTask.tasks
package org.apache.lucene.benchmark.byTask.tasks
Extendable benchmark tasks.
-
ClassDescriptionAdd a document, optionally of a certain size.Add a faceted document.Adds an input index to an existing index, using
IndexWriter.addIndexes(Directory...)
orIndexWriter.addIndexes(CodecReader...)
.Analyzer factory construction task.Clear statistics data.Close index writer.Close index reader.Close taxonomy index.Close taxonomy reader.Commits the IndexWriter.Commits the Taxonomy Index.Consumes aContentSource
.Create an index.Create a taxonomy index.Flush Index Task uses flushNextBuffer() to flush documents at thread levelRuns forceMerge on the index.Spawns a BG thread that periodically (defaults to 3.0 seconds, but accepts param in seconds) wakes up and asks IndexWriter for a near real-time reader.Create a newAnalyzer
and set it in the getRunData() for use by all future tasks.Task to support benchmarking collation.Different Collation implementations: currently limited to what is provided in the JDK and ICU.Set aLocale
for use in benchmarking.Increment the counter for properties maintained by Round Number.Open an index writer.Open an index reader.Open a taxonomy index.Open a taxonomy index reader.An abstract task to be tested for performance.Opens a reader and prints basic statistics.Read index (abstract) task.Simple task to test performance of tokenizers.Reopens IndexReader and closes old IndexReader.Report all statistics with no aggregations.Report (abstract) task - all report tasks extend this task.Report by-name-prefix statistics with no aggregations.Report all statistics grouped/aggregated by name and round.Report all statistics aggregated by name.Report all prefix matching statistics grouped/aggregated by name and round.Report by-name-prefix statistics aggregated by name.Reset inputs so that the test run would behave, input wise, as if it just started.Reset all index and input data and call gc, erase index and dir, does NOT clear statistics.Reset all index and input data and call gc, does NOT erase index/dir, does NOT clear statistics.Rollback the index writer.Search task.Search and Traverse and Retrieve docs task.Search and Traverse and Retrieve docs task using a FieldVisitor loading only the requested fields.Search and Traverse and Retrieve docs task.Search and Traverse task.Does search w/ a custom collectorDoes sort search on specified field.Set a performance test configuration property.Sequence of parallel or sequential tasks.Update a document, using IndexWriter.updateDocument, optionally with of a certain size.Simply waits for the specified (via the parameter) amount of time.Warm reader task: retrieve all reader documents.AWriteLineDocTask
which for Wikipedia input, will write category pages to another file, while remaining pages will be written to the original file.A task which writes documents, one line per document.