Package com.yahoo.searchlib.expression
Class XorFunctionNode
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class XorFunctionNode extends BitFunctionNode
This function is an instruction to perform bitwise XOR on the result of all arguments in order.- 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 XorFunctionNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onArgument(ResultNode arg, IntegerResultNode result)
Method for performing onArgument on integers, the only type supported for bit operations.protected int
onGetClassId()
-
Methods inherited from class com.yahoo.searchlib.expression.BitFunctionNode
onArgument, onPrepareResult
-
Methods inherited from class com.yahoo.searchlib.expression.NumericFunctionNode
equalsMultiArgFunction, onPrepare
-
Methods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, clone, equalsFunction, getArg, getNumArgs, hashCode, onCalculate, onDeserialize, onExecute, 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, prepare
-
-
-
-
Method Detail
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classBitFunctionNode
-
onArgument
public void onArgument(ResultNode arg, IntegerResultNode result)
Description copied from class:BitFunctionNode
Method for performing onArgument on integers, the only type supported for bit operations.- Specified by:
onArgument
in classBitFunctionNode
- Parameters:
arg
- Argument given to the bit function.result
- Place to store the result.
-
-