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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDebugWaitFunctionNode(ExpressionNode arg, double waitTime, boolean busyWait) Constructs an instance of this class with given argument and wait parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleaninthashCode()protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) booleanprotected intvoidprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.UnaryFunctionNode
equalsMultiArgFunction, getArg, onPrepareResultMethods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, clone, equalsFunction, getArg, getNumArgs, onCalculate, selectMembersMethods inherited from class com.yahoo.searchlib.expression.FunctionNode
equalsExpression, getResult, setResultMethods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepareMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toStringMethods 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:
onPreparein classUnaryFunctionNode
-
onExecute
public boolean onExecute()- Overrides:
onExecutein classMultiArgFunctionNode
-
hashCode
public int hashCode()- Overrides:
hashCodein classMultiArgFunctionNode
-
equalsUnaryFunction
- Specified by:
equalsUnaryFunctionin classUnaryFunctionNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classMultiArgFunctionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classMultiArgFunctionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classMultiArgFunctionNode
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classUnaryFunctionNode
-