public final class QueryProfiler extends AbstractProfiler<QueryProfileBreakdown,org.apache.lucene.search.Query>
profileTree
Constructor and Description |
---|
QueryProfiler() |
Modifier and Type | Method and Description |
---|---|
CollectorResult |
getCollector()
Return the current root Collector for this search
|
long |
getRewriteTime() |
void |
setCollector(InternalProfileCollector collector)
Set the collector that is associated with this profiler.
|
void |
startRewriteTime()
Begin timing the rewrite phase of a request.
|
long |
stopAndAddRewriteTime()
Stop recording the current rewrite and add it's time to the total tally, returning the
cumulative time so far.
|
getQueryBreakdown, getTree, pollLastElement
public void setCollector(InternalProfileCollector collector)
public void startRewriteTime()
public long stopAndAddRewriteTime()
public long getRewriteTime()
public CollectorResult getCollector()