Package com.yahoo.searchlib.expression
Class UnaryBitFunctionNode
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.UnaryBitFunctionNode
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
MD5BitFunctionNode,XorBitFunctionNode
This is an abstract super-class for all unary functions that operator on bit values.
- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty result node.UnaryBitFunctionNode(ExpressionNode arg, int numBits) Constructs an instance of this class with given argument and number of bits. -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanfinal intReturns the number of bits to operate on.inthashCode()protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) protected intprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) setNumBits(int numBits) Sets the number of bits to operate on.voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.UnaryFunctionNode
equalsMultiArgFunction, getArg, onPrepare, onPrepareResultMethods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, clone, equalsFunction, getArg, getNumArgs, onCalculate, onExecute, 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
-
UnaryBitFunctionNode
public UnaryBitFunctionNode()Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set. -
UnaryBitFunctionNode
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
-
getNumBits
public final int getNumBits()Returns the number of bits to operate on.- Returns:
- The number of bits.
-
setNumBits
Sets the number of bits to operate on.- Parameters:
numBits- The number of bits.- Returns:
- This, to allow chaining.
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin 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
-
hashCode
public int hashCode()- Overrides:
hashCodein classMultiArgFunctionNode
-
equalsUnaryFunction
- Specified by:
equalsUnaryFunctionin classUnaryFunctionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classMultiArgFunctionNode
-