net.sf.jagg
Class MultiPropAggregator

java.lang.Object
  extended by net.sf.jagg.Aggregator
      extended by net.sf.jagg.MultiPropAggregator

public abstract class MultiPropAggregator
extends Aggregator

This abstract class allows for the state necessary to implement aggregate functions over any number of variables (properties). The aggregation algorithm is the same as in Aggregator, but MultiPropAggregators have access to a List of properties.

Since:
0.1.0
Author:
Randy Gettman

Field Summary
 
Fields inherited from class net.sf.jagg.Aggregator
PROP_SELF
 
Constructor Summary
protected MultiPropAggregator()
          Default constructor is protected so that only subclasses of MultiPropAggregator can be instantiated.
 
Method Summary
 int getNumProperties()
          Returns the number of properties.
 java.lang.String getProperty(int index)
          Retrieves the property name specified by the given zero-based index.
protected  void setProperty(java.lang.String property)
          Sets any number of property Strings.
 java.lang.String toString()
          A String representation of this MultiPropAggregator.
 
Methods inherited from class net.sf.jagg.Aggregator
equals, getAggregator, getAggregator, getProperty, getValueFromProperty, hashCode, init, isInUse, iterate, merge, replicate, setInUse, terminate, terminateDoubleDouble
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiPropAggregator

protected MultiPropAggregator()
Default constructor is protected so that only subclasses of MultiPropAggregator can be instantiated.

Method Detail

setProperty

protected void setProperty(java.lang.String property)
Sets any number of property Strings. The default implementation expects propert names separated by commas.

Overrides:
setProperty in class Aggregator
Parameters:
property - The property String, with commas separating multiple actual property names.
See Also:
Aggregator.getProperty(), getProperty(int)

getProperty

public java.lang.String getProperty(int index)
Retrieves the property name specified by the given zero-based index.

Parameters:
index - The zero-based index.
Returns:
The property name.

getNumProperties

public int getNumProperties()
Returns the number of properties.

Returns:
The number of properties.

toString

public java.lang.String toString()
A String representation of this MultiPropAggregator. It takes into account that there are multiple properties.

Overrides:
toString in class Aggregator


Copyright © 2010-2013 jAgg Team. All Rights Reserved.