public class GroupBySingletonIterator extends GroupByIterator
comparer, groupKeys, groups, keyExpression
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
GroupBySingletonIterator(SequenceIterator population,
Expression keyExpression,
XPathContext keyContext,
StringCollator collator)
Create a GroupByIterator
|
Modifier and Type | Method and Description |
---|---|
protected void |
processItem(java.util.HashMap<ComparisonKey,java.util.List<Item>> index,
Item item,
XPathContext c2)
Process one item in the population
|
close, current, getAnother, getCurrentGroup, getCurrentGroupingKey, getLastPosition, getProperties, hasNext, iterateCurrentGroup, next, position
public GroupBySingletonIterator(SequenceIterator population, Expression keyExpression, XPathContext keyContext, StringCollator collator) throws XPathException
population
- iterator over the population to be groupedkeyExpression
- the expression used to calculate the grouping keykeyContext
- dynamic context for calculating the grouping keycollator
- Collation to be used for comparing grouping keysXPathException
protected void processItem(java.util.HashMap<ComparisonKey,java.util.List<Item>> index, Item item, XPathContext c2) throws XPathException
processItem
in class GroupByIterator
index
- the index of itemsitem
- the item from the population to be processedc2
- the XPath evaluation contextXPathException