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 java.lang.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(java.lang.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()
           
 java.lang.String key()
           
abstract  java.lang.String toPrefixString()
           
abstract  java.lang.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 java.lang.String key()
Specified by:
key in interface Aggregator

copyTransform

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

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object

toPrefixString

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

hashCode

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

equals

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


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