org.openrdf.query.algebra
Class AggregateOperatorBase

java.lang.Object
  extended by org.openrdf.query.algebra.QueryModelNodeBase
      extended by org.openrdf.query.algebra.UnaryValueOperator
          extended by org.openrdf.query.algebra.AggregateOperatorBase
All Implemented Interfaces:
Cloneable, AggregateOperator, QueryModelNode, ValueExpr
Direct Known Subclasses:
Avg, Count, GroupConcat, Max, Min, Sample, Sum

public abstract class AggregateOperatorBase
extends UnaryValueOperator
implements AggregateOperator

Base class for shared functionality of aggregate operators (e.g. DISTINCT setting)

Author:
Jeen Broekstra

Field Summary
 
Fields inherited from class org.openrdf.query.algebra.UnaryValueOperator
arg
 
Constructor Summary
AggregateOperatorBase(ValueExpr arg)
           
AggregateOperatorBase(ValueExpr arg, boolean distinct)
           
 
Method Summary
 AggregateOperatorBase clone()
          Returns a (deep) clone of this query model node.
 boolean isDistinct()
           
 void setDistinct(boolean distinct)
           
 
Methods inherited from class org.openrdf.query.algebra.UnaryValueOperator
equals, getArg, hashCode, replaceChildNode, setArg, visitChildren
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, getSignature, nullEquals, replaceNodeInList, replaceWith, setParentNode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.algebra.QueryModelNode
equals, getParentNode, getSignature, replaceChildNode, replaceWith, setParentNode, toString, visit, visitChildren
 

Constructor Detail

AggregateOperatorBase

public AggregateOperatorBase(ValueExpr arg)

AggregateOperatorBase

public AggregateOperatorBase(ValueExpr arg,
                             boolean distinct)
Method Detail

setDistinct

public void setDistinct(boolean distinct)
Specified by:
setDistinct in interface AggregateOperator

isDistinct

public boolean isDistinct()
Specified by:
isDistinct in interface AggregateOperator

clone

public AggregateOperatorBase clone()
Description copied from interface: QueryModelNode
Returns a (deep) clone of this query model node. This method recursively clones the entire node tree, starting from this nodes.

Specified by:
clone in interface AggregateOperator
Specified by:
clone in interface QueryModelNode
Specified by:
clone in interface ValueExpr
Overrides:
clone in class UnaryValueOperator
Returns:
A deep clone of this query model node.


Copyright © 2001-2012 Aduna. All Rights Reserved.