Package com.yahoo.searchlib.expression
Class XorBitFunctionNode
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
- All Implemented Interfaces:
Serializable
,Cloneable
This function is a request to bitwise XOR the result of its first argument with itself in chunks of the second
argument number of bits. If the result to XOR is a 24 bit value, and the second argument is 8, this function will XOR
the first 8 bits of the result with the next 8 bits of the result, and then XOR that number with the next 8 bits of
the result.
- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs an empty result node.XorBitFunctionNode
(ExpressionNode arg, int numBits) Constructs an instance of this class with given argument and number of bits. -
Method Summary
Methods inherited from class com.yahoo.searchlib.expression.UnaryBitFunctionNode
equalsUnaryFunction, getNumBits, hashCode, onDeserialize, onSerialize, setNumBits, visitMembers
Methods inherited from class com.yahoo.searchlib.expression.UnaryFunctionNode
equalsMultiArgFunction, getArg, onPrepare, onPrepareResult
Methods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, clone, equalsFunction, getArg, getNumArgs, onCalculate, onExecute, 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, 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
-
XorBitFunctionNode
public XorBitFunctionNode()Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set. -
XorBitFunctionNode
Constructs an instance of this class with given argument and number of bits.- Parameters:
arg
- The argument for this function.numBits
- The number of bits to operate on.
-
-
Method Details
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassId
in classUnaryBitFunctionNode
-