org.apache.lucene.benchmark.byTask.tasks

Class ReadTask

Implemented Interfaces:
Cloneable
Known Direct Subclasses:
SearchTask, SearchTravRetTask, SearchTravTask, WarmTask

public abstract class ReadTask
extends PerfTask

Read index (abstract) task. Sub classes implement withSearch(), withWarm(), withTraverse() and withRetrieve() methods to configure the actual action. Other side effects: none.

Field Summary

Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask

NEW_LINE, params

Constructor Summary

ReadTask(PerfRunData runData)

Method Summary

int
doLogic()
abstract QueryMaker
getQueryMaker()
Return query maker used for this task.
abstract boolean
withRetrieve()
Return true if, with search & results traversing, docs should be retrieved.
abstract boolean
withSearch()
Return true if search should be performed.
abstract boolean
withTraverse()
Return true if, with search, results should be traversed.
abstract boolean
withWarm()
Return true if warming should be performed.

Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask

clone, doLogic, getDepth, getName, getParams, getRunData, runAndMaybeStats, setDepth, setName, setParams, setup, shouldNeverLogAtStart, shouldNotRecordStats, tearDown, toString

Constructor Details

ReadTask

public ReadTask(PerfRunData runData)

Method Details

doLogic

public int doLogic()
            throws Exception
Overrides:
doLogic in interface PerfTask

getQueryMaker

public abstract QueryMaker getQueryMaker()
Return query maker used for this task.

withRetrieve

public abstract boolean withRetrieve()
Return true if, with search & results traversing, docs should be retrieved.

withSearch

public abstract boolean withSearch()
Return true if search should be performed.

withTraverse

public abstract boolean withTraverse()
Return true if, with search, results should be traversed.

withWarm

public abstract boolean withWarm()
Return true if warming should be performed.

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