Package com.yahoo.searchlib.expression
Class AggregationRefNode
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- com.yahoo.searchlib.expression.ExpressionNode
-
- com.yahoo.searchlib.expression.AggregationRefNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AggregationRefNode extends ExpressionNode
This node holds the index of an ExpressionNode in an external array, and is used as a proxy in the back-end to allow aggregators to be used in expressions.- Author:
- baldersheim
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description AggregationRefNode()
AggregationRefNode(int index)
AggregationRefNode(AggregationResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregationRefNode
clone()
boolean
equalsExpression(ExpressionNode obj)
AggregationResult
getExpression()
int
getIndex()
ResultNode
getResult()
Get the result of this expression.int
hashCode()
protected void
onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
boolean
onExecute()
protected int
onGetClassId()
void
onPrepare()
protected void
onSerialize(com.yahoo.vespa.objects.Serializer buf)
AggregationRefNode
setExpression(AggregationResult result)
AggregationRefNode
setIndex(int index)
void
visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
-
Methods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepare
-
-
-
-
Constructor Detail
-
AggregationRefNode
public AggregationRefNode()
-
AggregationRefNode
public AggregationRefNode(int index)
-
AggregationRefNode
public AggregationRefNode(AggregationResult result)
-
-
Method Detail
-
getExpression
public AggregationResult getExpression()
-
setExpression
public AggregationRefNode setExpression(AggregationResult result)
-
setIndex
public AggregationRefNode setIndex(int index)
-
getIndex
public int getIndex()
-
onExecute
public boolean onExecute()
- Overrides:
onExecute
in classExpressionNode
-
onPrepare
public void onPrepare()
- Overrides:
onPrepare
in classExpressionNode
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classExpressionNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf)
- Overrides:
onSerialize
in classExpressionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
- Overrides:
onDeserialize
in classExpressionNode
-
clone
public AggregationRefNode clone()
- Overrides:
clone
in classExpressionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
- Overrides:
visitMembers
in classExpressionNode
-
getResult
public ResultNode getResult()
Description copied from class:ExpressionNode
Get the result of this expression.- Specified by:
getResult
in classExpressionNode
- Returns:
- the result as a ResultNode.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.yahoo.vespa.objects.Identifiable
-
equalsExpression
public boolean equalsExpression(ExpressionNode obj)
- Specified by:
equalsExpression
in classExpressionNode
-
-