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
This is a debug wait function node that waits for a specified amount of time before executing its expression.
- Author:
- Ulf Lilleengen
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDebugWaitFunctionNode
(ExpressionNode arg, double waitTime, boolean busyWait) Constructs an instance of this class with given argument and wait parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
int
hashCode()
protected void
onDeserialize
(com.yahoo.vespa.objects.Deserializer buf) boolean
protected int
void
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
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, registerClass, serialize, serializeOptional, serializeWithId, toString
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
DebugWaitFunctionNode
public DebugWaitFunctionNode() -
DebugWaitFunctionNode
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 Details
-
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
- 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
-