|
|||||||||
| Home >> All >> org >> jdaemon >> era >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdaemon.era.sql
Class GroupAggregatingIterator

java.lang.Objectorg.jdaemon.util.iterator.AggregatingIterator
org.jdaemon.era.sql.GroupAggregatingIterator
- All Implemented Interfaces:
- java.util.Iterator
- class GroupAggregatingIterator
- extends org.jdaemon.util.iterator.AggregatingIterator
Iterator that will group data into Cubes. This is a package-level class because it is heavily dependent on certain implementation details of SQLCube and JavaCube, so not generally suitable for use elsewhere.
| Nested Class Summary | |
private static class |
GroupAggregatingIterator.GroupComparator
Comparator used to test the value of a common attribute contained by two data items. |
| Field Summary | |
(package private) org.jdaemon.era.java.JavaCubeDescriptor |
descriptor
Descriptor used both to access attribute values and to create new, empty cubes |
| Fields inherited from class org.jdaemon.util.iterator.AggregatingIterator |
|
| Constructor Summary | |
GroupAggregatingIterator(java.util.Iterator iterator,
org.jdaemon.era.java.JavaCubeDescriptor descriptor,
java.lang.String group_attribute,
boolean ordered)
Generate a new GroupAggregatingIterator The resulting iterator will be over a set of cubes, where each cube contains data items sharing a common value of group_attribute |
|
| Method Summary | |
protected java.lang.Object |
addToGroup(java.lang.Object group,
java.lang.Object value)
Add given data item to a cube |
protected java.lang.Object |
beginGroup()
Create a new, empty cube to which data will be added |
| Methods inherited from class org.jdaemon.util.iterator.AggregatingIterator |
hasNext, next, remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
descriptor
org.jdaemon.era.java.JavaCubeDescriptor descriptor
- Descriptor used both to access attribute values and to create new, empty cubes
| Constructor Detail |
GroupAggregatingIterator
public GroupAggregatingIterator(java.util.Iterator iterator, org.jdaemon.era.java.JavaCubeDescriptor descriptor, java.lang.String group_attribute, boolean ordered)
- Generate a new GroupAggregatingIterator
The resulting iterator will be over a set of cubes, where each cube contains data items sharing
a common value of group_attribute
| Method Detail |
addToGroup
protected java.lang.Object addToGroup(java.lang.Object group, java.lang.Object value)
- Add given data item to a cube
beginGroup
protected java.lang.Object beginGroup()
- Create a new, empty cube to which data will be added
|
|||||||||
| Home >> All >> org >> jdaemon >> era >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC