Package com.yahoo.searchlib.expression
Class DebugWaitFunctionNode
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- com.yahoo.searchlib.expression.ExpressionNode
-
- com.yahoo.searchlib.expression.FunctionNode
-
- com.yahoo.searchlib.expression.MultiArgFunctionNode
-
- com.yahoo.searchlib.expression.UnaryFunctionNode
-
- com.yahoo.searchlib.expression.DebugWaitFunctionNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DebugWaitFunctionNode extends UnaryFunctionNode
This is a debug wait function node that waits for a specified amount of time before executing its expression.- Author:
- Ulf Lilleengen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description DebugWaitFunctionNode()
DebugWaitFunctionNode(ExpressionNode arg, double waitTime, boolean busyWait)
Constructs an instance of this class with given argument and wait parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
equalsUnaryFunction(UnaryFunctionNode obj)
int
hashCode()
protected void
onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
boolean
onExecute()
protected int
onGetClassId()
void
onPrepare()
protected void
onSerialize(com.yahoo.vespa.objects.Serializer buf)
void
visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
-
Methods inherited from class com.yahoo.searchlib.expression.UnaryFunctionNode
equalsMultiArgFunction, getArg, onPrepareResult
-
Methods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, clone, equalsFunction, getArg, getNumArgs, onCalculate, selectMembers
-
Methods inherited from class com.yahoo.searchlib.expression.FunctionNode
equalsExpression, getResult, setResult
-
Methods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepare
-
-
-
-
Constructor Detail
-
DebugWaitFunctionNode
public DebugWaitFunctionNode()
-
DebugWaitFunctionNode
public DebugWaitFunctionNode(ExpressionNode arg, double waitTime, boolean busyWait)
Constructs an instance of this class with given argument and wait parameters.- Parameters:
arg
- The argument for this function.waitTime
- The time to wait before executing expression.busyWait
- true if busy wait, false if not.
-
-
Method Detail
-
onPrepare
public void onPrepare()
- Overrides:
onPrepare
in classUnaryFunctionNode
-
onExecute
public boolean onExecute()
- Overrides:
onExecute
in classMultiArgFunctionNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMultiArgFunctionNode
-
equalsUnaryFunction
protected boolean equalsUnaryFunction(UnaryFunctionNode obj)
- Specified by:
equalsUnaryFunction
in classUnaryFunctionNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf)
- Overrides:
onSerialize
in classMultiArgFunctionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
- Overrides:
onDeserialize
in classMultiArgFunctionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
- Overrides:
visitMembers
in classMultiArgFunctionNode
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classUnaryFunctionNode
-
-