Package com.yahoo.searchlib.expression
Class ReverseFunctionNode
- 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.ReverseFunctionNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReverseFunctionNode extends UnaryFunctionNode
This class will revert the order on any multivalues. Nothing is done to single value types such as integers, float, strings and Raw values.- Author:
- baldersheim
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description ReverseFunctionNode()
Constructs an empty result node.ReverseFunctionNode(ExpressionNode arg)
Constructs an instance of this class with given argument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
equalsUnaryFunction(UnaryFunctionNode obj)
protected int
onGetClassId()
-
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, 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
-
-
-
-
Constructor Detail
-
ReverseFunctionNode
public ReverseFunctionNode()
Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set.
-
ReverseFunctionNode
public ReverseFunctionNode(ExpressionNode arg)
Constructs an instance of this class with given argument.- Parameters:
arg
- The argument for this function.
-
-
Method Detail
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classUnaryFunctionNode
-
equalsUnaryFunction
protected boolean equalsUnaryFunction(UnaryFunctionNode obj)
- Specified by:
equalsUnaryFunction
in classUnaryFunctionNode
-
-