Class DebugWaitFunction
java.lang.Object
com.yahoo.search.grouping.request.GroupingNode
com.yahoo.search.grouping.request.GroupingExpression
com.yahoo.search.grouping.request.FunctionNode
com.yahoo.search.grouping.request.DebugWaitFunction
- All Implemented Interfaces:
Iterable<GroupingExpression>
This class represents debug_wait function in a
GroupingExpression
. For each hit evaluated,
it waits for the time specified as the second argument. The third argument specifies if the wait
should be a busy-wait or not. The first argument is then evaluated.- Author:
- Ulf Lilleengen
-
Constructor Summary
ConstructorDescriptionDebugWaitFunction
(GroupingExpression arg1, DoubleValue arg2, BooleanValue arg3) Constructs a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a deep copy of thisboolean
Returns whether or not the debug node should busy-wait.double
Returns the time to wait when evaluating this function.Methods inherited from class com.yahoo.search.grouping.request.FunctionNode
args, asList, asList, asList, getArg, getNumArgs, iterator, resolveLevel, visit
Methods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, setLabel
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DebugWaitFunction
Constructs a new instance of this class.- Parameters:
arg1
- The first compulsory argument, the expression to proxy.arg2
- The second compulsory argument, must evaluate to a positive number.arg3
- The third compulsory argument, specifying busy wait or not.
-
-
Method Details
-
copy
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
getWaitTime
public double getWaitTime()Returns the time to wait when evaluating this function.- Returns:
- the number of seconds to wait.
-
getBusyWait
public boolean getBusyWait()Returns whether or not the debug node should busy-wait.- Returns:
- true if busy-wait, false if not.
-