Package com.yahoo.searchlib.expression
Class BitFunctionNode
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.NumericFunctionNode
com.yahoo.searchlib.expression.BitFunctionNode
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
AndFunctionNode,OrFunctionNode,XorFunctionNode
This is an abstract super-class for all non-unary functions that operator on bit values.
- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidonArgument(ResultNode arg, IntegerResultNode result) Method for performing onArgument on integers, the only type supported for bit operations.protected voidonArgument(ResultNode arg, ResultNode result) protected intprotected voidMethods inherited from class com.yahoo.searchlib.expression.NumericFunctionNode
equalsMultiArgFunction, onPrepareMethods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, clone, equalsFunction, getArg, getNumArgs, hashCode, onCalculate, onDeserialize, onExecute, onSerialize, selectMembers, visitMembersMethods inherited from class com.yahoo.searchlib.expression.FunctionNode
equalsExpression, getResult, setResultMethods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, 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
-
BitFunctionNode
public BitFunctionNode()
-
-
Method Details
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classMultiArgFunctionNode
-
onArgument
- Overrides:
onArgumentin classExpressionNode
-
onPrepareResult
protected void onPrepareResult()- Overrides:
onPrepareResultin classMultiArgFunctionNode
-
onArgument
Method for performing onArgument on integers, the only type supported for bit operations.- Parameters:
arg- Argument given to the bit function.result- Place to store the result.
-