public class GroupBySingletonIterator extends GroupByIterator
comparer, groupKeys, groups, keyExpressionGROUNDED, 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(HashMap<ComparisonKey,List<Item>> index,
Item item,
XPathContext c2)
Process one item in the population
|
close, current, getAnother, getCurrentGroup, getCurrentGroupingKey, getLastPosition, getProperties, hasNext, iterateCurrentGroup, next, positionpublic 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 keysXPathExceptionprotected void processItem(HashMap<ComparisonKey,List<Item>> index, Item item, XPathContext c2) throws XPathException
processItem in class GroupByIteratorindex - the index of itemsitem - the item from the population to be processedc2 - the XPath evaluation contextXPathException