Class SearchTravRetTask

  extended by org.apache.lucene.benchmark.byTask.tasks.PerfTask
      extended by org.apache.lucene.benchmark.byTask.tasks.ReadTask
          extended by org.apache.lucene.benchmark.byTask.tasks.SearchTravTask
              extended by org.apache.lucene.benchmark.byTask.tasks.SearchTravRetTask
All Implemented Interfaces:

public class SearchTravRetTask
extends SearchTravTask

Search and Traverse and Retrieve docs task.

Note: This task reuses the reader if it is already open. Otherwise a reader is opened at start and closed at the end.

Takes optional param: traversal size (otherwise all results are traversed).

Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.

Field Summary
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.SearchTravTask
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask
logStep, NEW_LINE, params
Constructor Summary
SearchTravRetTask(PerfRunData runData)
Method Summary
 boolean withRetrieve()
          Return true if, with search & results traversing, docs should be retrieved.
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.SearchTravTask
getQueryMaker, setParams, supportsParams, traversalSize, withSearch, withTraverse, withWarm
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.ReadTask
doLogic, getBenchmarkHighlighter, getFieldsToHighlight, getSort, numHits, numToHighlight, retrieveDoc, setup, withMaxScore, withScore
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask
clone, close, getDepth, getLogMessage, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, shouldNeverLogAtStart, shouldNotRecordStats, tearDown, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public SearchTravRetTask(PerfRunData runData)
Method Detail


public boolean withRetrieve()
Description copied from class: ReadTask
Return true if, with search & results traversing, docs should be retrieved.

withRetrieve in class SearchTravTask

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.