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
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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
getIndex()
Get the result of this expression.int
hashCode()
protected void
onDeserialize
(com.yahoo.vespa.objects.Deserializer buf) boolean
protected int
void
protected void
onSerialize
(com.yahoo.vespa.objects.Serializer buf) setExpression
(AggregationResult result) 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
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
AggregationRefNode
public AggregationRefNode() -
AggregationRefNode
public AggregationRefNode(int index) -
AggregationRefNode
-
-
Method Details
-
getExpression
-
setExpression
-
setIndex
-
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
- Overrides:
clone
in classExpressionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembers
in classExpressionNode
-
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
- Specified by:
equalsExpression
in classExpressionNode
-