Package com.yahoo.searchlib.expression
Class NegateFunctionNode
- 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.NegateFunctionNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class NegateFunctionNode extends UnaryFunctionNode
This function is an instruction to negate its argument.- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description NegateFunctionNode()
Constructs an empty result node.NegateFunctionNode(ExpressionNode arg)
Constructs an instance of this class with given argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
equalsUnaryFunction(UnaryFunctionNode obj)
boolean
onExecute()
protected int
onGetClassId()
void
onPrepare()
-
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, hashCode, onCalculate, onDeserialize, onSerialize, selectMembers, visitMembers
-
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
-
NegateFunctionNode
public NegateFunctionNode()
Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set.
-
NegateFunctionNode
public NegateFunctionNode(ExpressionNode arg)
Constructs an instance of this class with given argument.- Parameters:
arg
- The argument for this function.
-
-
Method Detail
-
onPrepare
public void onPrepare()
- Overrides:
onPrepare
in classUnaryFunctionNode
-
onExecute
public boolean onExecute()
- Overrides:
onExecute
in classMultiArgFunctionNode
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classUnaryFunctionNode
-
equalsUnaryFunction
protected boolean equalsUnaryFunction(UnaryFunctionNode obj)
- Specified by:
equalsUnaryFunction
in classUnaryFunctionNode
-
-