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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanintgetIndex()Get the result of this expression.inthashCode()protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) booleanprotected intvoidprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) setExpression(AggregationResult result) setIndex(int index) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, prepareMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toStringMethods 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:
onExecutein classExpressionNode
-
onPrepare
public void onPrepare()- Overrides:
onPreparein classExpressionNode
-
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classExpressionNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classExpressionNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classExpressionNode
-
clone
- Overrides:
clonein classExpressionNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classExpressionNode
-
getResult
Description copied from class:ExpressionNodeGet the result of this expression.- Specified by:
getResultin classExpressionNode- Returns:
- the result as a ResultNode.
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.yahoo.vespa.objects.Identifiable
-
equalsExpression
- Specified by:
equalsExpressionin classExpressionNode
-