Package com.yahoo.searchlib.expression
Class RangeBucketPreDefFunctionNode
- 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.RangeBucketPreDefFunctionNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RangeBucketPreDefFunctionNode extends UnaryFunctionNode
This function assign a fixed width bucket to each input value- Author:
- Haavard Pettersen, Simon Thoresen Hult
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description RangeBucketPreDefFunctionNode()
Constructs an empty result node.RangeBucketPreDefFunctionNode(ResultNodeVector v, ExpressionNode arg)
Create a bucket expression with the given width and the given subexpression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeBucketPreDefFunctionNode
clone()
protected boolean
equalsUnaryFunction(UnaryFunctionNode obj)
ResultNodeVector
getBucketList()
Obtain the predefined bucket list of this bucket expressionprotected void
onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
protected int
onGetClassId()
protected void
onSerialize(com.yahoo.vespa.objects.Serializer buf)
void
visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
-
Methods inherited from class com.yahoo.searchlib.expression.UnaryFunctionNode
equalsMultiArgFunction, getArg, onPrepare, onPrepareResult
-
Methods inherited from class com.yahoo.searchlib.expression.MultiArgFunctionNode
addArg, equalsFunction, getArg, getNumArgs, hashCode, 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
-
-
-
-
Constructor Detail
-
RangeBucketPreDefFunctionNode
public RangeBucketPreDefFunctionNode()
Constructs an empty result node.
-
RangeBucketPreDefFunctionNode
public RangeBucketPreDefFunctionNode(ResultNodeVector v, ExpressionNode arg)
Create a bucket expression with the given width and the given subexpression- Parameters:
v
- predefined bucket listarg
- The argument for this function.
-
-
Method Detail
-
getBucketList
public ResultNodeVector getBucketList()
Obtain the predefined bucket list of this bucket expression- Returns:
- predefined bucket list for this expression
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classUnaryFunctionNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf)
- Overrides:
onSerialize
in classMultiArgFunctionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
- Overrides:
onDeserialize
in classMultiArgFunctionNode
-
equalsUnaryFunction
protected boolean equalsUnaryFunction(UnaryFunctionNode obj)
- Specified by:
equalsUnaryFunction
in classUnaryFunctionNode
-
clone
public RangeBucketPreDefFunctionNode clone()
- Overrides:
clone
in classMultiArgFunctionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
- Overrides:
visitMembers
in classMultiArgFunctionNode
-
-