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, AggNull, 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
 Aggregator copyTransform(NodeTransform transform)
           
abstract  Accumulator createAccumulator()
          Create an accumulator for this aggregator
abstract  boolean equals(Object other)
           
 com.hp.hpl.jena.graph.Node getValue(Binding 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

createAccumulator

public abstract Accumulator createAccumulator()
Description copied from interface: Aggregator
Create an accumulator for this aggregator

Specified by:
createAccumulator 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(Binding key)

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


Licenced under the Apache License, Version 2.0