com.hp.hpl.jena.sparql.expr.aggregate
Class AggregatorBase

java.lang.Object
  extended by com.hp.hpl.jena.sparql.expr.aggregate.AggregatorBase
All Implemented Interfaces:
Aggregator
Direct Known Subclasses:
AggAvg, AggAvgDistinct, AggCount, AggCountDistinct, AggCountVar, AggCountVarDistinct, AggGroupConcat, AggGroupConcatDistinct, AggMax, AggMaxDistinct, AggMin, AggMinDistinct, AggSample, AggSampleDistinct, AggSum, AggSumDistinct

public abstract class AggregatorBase
extends Object
implements Aggregator

Aggregate that does everything except the per-group aggregation that is needed for each operation


Method Summary
 void accumulate(BindingKey key, Binding binding, FunctionEnv functionEnv)
           
 Aggregator copyTransform(NodeTransform transform)
           
abstract  boolean equals(Object other)
           
 com.hp.hpl.jena.graph.Node getValue(BindingKey key)
           
abstract  com.hp.hpl.jena.graph.Node getValueEmpty()
          Value if there are no elements in any group : return null for no result
abstract  int hashCode()
           
 String key()
           
abstract  String toPrefixString()
           
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.expr.aggregate.Aggregator
copy, getExpr
 

Method Detail

accumulate

public final void accumulate(BindingKey key,
                             Binding binding,
                             FunctionEnv functionEnv)
Specified by:
accumulate in interface Aggregator

getValueEmpty

public abstract com.hp.hpl.jena.graph.Node getValueEmpty()
Description copied from interface: Aggregator
Value if there are no elements in any group : return null for no result

Specified by:
getValueEmpty in interface Aggregator

getValue

public com.hp.hpl.jena.graph.Node getValue(BindingKey key)
Specified by:
getValue in interface Aggregator

key

public String key()
Specified by:
key in interface Aggregator

copyTransform

public final Aggregator copyTransform(NodeTransform transform)
Specified by:
copyTransform in interface Aggregator

toString

public abstract String toString()
Overrides:
toString in class Object

toPrefixString

public abstract String toPrefixString()
Specified by:
toPrefixString in interface Aggregator

hashCode

public abstract int hashCode()
Specified by:
hashCode in interface Aggregator
Overrides:
hashCode in class Object

equals

public abstract boolean equals(Object other)
Specified by:
equals in interface Aggregator
Overrides:
equals in class Object


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.