Package com.yahoo.searchlib.expression
Class UnaryFunctionNode
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
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
ArrayAtLookupNode
,DebugWaitFunctionNode
,FixedWidthBucketFunctionNode
,InterpolatedLookupNode
,NegateFunctionNode
,NormalizeSubjectFunctionNode
,NumElemFunctionNode
,RangeBucketPreDefFunctionNode
,ReverseFunctionNode
,SortFunctionNode
,StrLenFunctionNode
,TimeStampFunctionNode
,ToFloatFunctionNode
,ToIntFunctionNode
,ToRawFunctionNode
,ToStringFunctionNode
,UcaFunctionNode
,UnaryBitFunctionNode
,ZCurveFunctionNode
This is an abstract super-class for all functions that accept only a single argument.
- Author:
- baldersheim, Simon Thoresen Hult
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final boolean
protected abstract boolean
getArg()
Return the single argument given to this function.protected int
void
void
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, onArgument, prepare
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, 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
-
UnaryFunctionNode
public UnaryFunctionNode()
-
-
Method Details
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassId
in classMultiArgFunctionNode
-
getArg
Return the single argument given to this function.- Returns:
- The argument to this function
-
onPrepareResult
public void onPrepareResult()- Overrides:
onPrepareResult
in classMultiArgFunctionNode
-
onPrepare
public void onPrepare()- Overrides:
onPrepare
in classMultiArgFunctionNode
-
equalsMultiArgFunction
- Specified by:
equalsMultiArgFunction
in classMultiArgFunctionNode
-
equalsUnaryFunction
-