public class Avg extends AbstractAggregateOperator
Note that we introduce AVG as a first-class object into the algebra, despite it being defined as a compound of other operators (namely, SUM and COUNT). This allows us to more easily optimize evaluation.
arg
Constructor and Description |
---|
Avg(ValueExpr arg) |
Avg(ValueExpr arg,
boolean distinct) |
Modifier and Type | Method and Description |
---|---|
Avg |
clone()
Returns a (deep) clone of this query model node.
|
boolean |
equals(Object other)
Returns true if this query model node and its children are recursively equal to o and its
children.
|
int |
hashCode() |
<X extends Exception> |
visit(QueryModelVisitor<X> visitor)
Visits this node.
|
isDistinct, setDistinct
getArg, replaceChildNode, setArg, visitChildren
getParentNode, getSignature, isGraphPatternGroup, nullEquals, replaceNodeInList, replaceWith, setGraphPatternGroup, setParentNode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getParentNode, getSignature, replaceChildNode, replaceWith, setParentNode, toString, visitChildren
public <X extends Exception> void visit(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNode
X extends Exception
public boolean equals(Object other)
QueryModelNode
equals
in interface QueryModelNode
equals
in class UnaryValueOperator
public int hashCode()
hashCode
in class AbstractAggregateOperator
public Avg clone()
QueryModelNode
clone
in interface AggregateOperator
clone
in interface QueryModelNode
clone
in interface ValueExpr
clone
in class AbstractAggregateOperator
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.