com.hp.hpl.jena.sparql.expr.aggregate
Interface Aggregator

All Known Implementing Classes:
AggAvg, AggAvgDistinct, AggCount, AggCountDistinct, AggCountVar, AggCountVarDistinct, AggGroupConcat, AggGroupConcatDistinct, AggMax, AggMaxDistinct, AggMin, AggMinDistinct, AggregatorBase, AggSample, AggSampleDistinct, AggSum, AggSumDistinct

public interface Aggregator

An Aggregator is the processor for the whole result stream. BindingKeys identify which section of a group we're in.


Method Summary
 void accumulate(BindingKey key, Binding b, FunctionEnv functionEnv)
           
 Aggregator copy(Expr expr)
           
 Aggregator copyTransform(NodeTransform transform)
           
 boolean equals(Object other)
           
 Expr getExpr()
          Get the expression - may be null (e.g COUNT(*)) ;
 com.hp.hpl.jena.graph.Node getValue(BindingKey key)
           
 com.hp.hpl.jena.graph.Node getValueEmpty()
          Value if there are no elements in any group : return null for no result
 int hashCode()
           
 String key()
           
 String toPrefixString()
           
 

Method Detail

accumulate

void accumulate(BindingKey key,
                Binding b,
                FunctionEnv functionEnv)

getValue

com.hp.hpl.jena.graph.Node getValue(BindingKey key)

getValueEmpty

com.hp.hpl.jena.graph.Node getValueEmpty()
Value if there are no elements in any group : return null for no result


toPrefixString

String toPrefixString()

key

String key()

getExpr

Expr getExpr()
Get the expression - may be null (e.g COUNT(*)) ;


copy

Aggregator copy(Expr expr)

copyTransform

Aggregator copyTransform(NodeTransform transform)

hashCode

int hashCode()
Overrides:
hashCode in class Object

equals

boolean equals(Object other)
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.