Package com.yahoo.container.handler
Class Timing
- java.lang.Object
-
- com.yahoo.container.handler.Timing
-
public class Timing extends java.lang.Object
A wrapper for timing of events in the course of a query evaluation. Advanced database searches and similar could use these structures as well.
Not adding this object will lead to less exact entries in the query log. It is legal to set only queryStartTime and set the other values to zero.
If you do not understand the fields, just avoid creating this object in you handler.
- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description Timing(long summaryStartTime, long ignored, long queryStartTime, long timeout)
Do consider using com.yahoo.search.handler.SearchResponse.createTiming(Query, Result) if instead of this constructor if you are creating a Timing instance in a search context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getQueryStartTime()
This is the start of the server's evaluation of a query or request, after full reception of it through the network.long
getSummaryStartTime()
Summary start time is when the fetching of hit/document contents start.long
getTimeout()
This is the timeout that was given to this query.
-
-
-
Constructor Detail
-
Timing
public Timing(long summaryStartTime, long ignored, long queryStartTime, long timeout)
Do consider using com.yahoo.search.handler.SearchResponse.createTiming(Query, Result) if instead of this constructor if you are creating a Timing instance in a search context.- Parameters:
summaryStartTime
- when fetching of document contents startedqueryStartTime
- when the request startedtimeout
- maximum allowed lifetime of the request
-
-
Method Detail
-
getSummaryStartTime
public long getSummaryStartTime()
Summary start time is when the fetching of hit/document contents start. (As opposed to just analyzing hit relevancies.)- Returns:
- the start time of summary fetching or 0
-
getQueryStartTime
public long getQueryStartTime()
This is the start of the server's evaluation of a query or request, after full reception of it through the network. It will usually be intialized implicitly from the value generated by the com.yahoo.search.Query constructor.- Returns:
- the starting time of query construction
-
getTimeout
public long getTimeout()
This is the timeout that was given to this query.- Returns:
- The timeout given allowed to the query.
-
-