org.exist.xquery.value
Class GroupedValueSequenceTable
java.lang.Object
java.util.Dictionary
java.util.Hashtable
org.exist.xquery.value.GroupedValueSequenceTable
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public class GroupedValueSequenceTable
- extends Hashtable
An Hashtable that containts a GroupedValueSequence for each group.
Groups are specified by the group specs of a "group by" clause. Used by
ForExpr
et al.
WARNING : don't use except for experimental "group by" clause
- Author:
- Boris Verhaegen (boris.verhaegen@gmail.com)
- See Also:
- Serialized Form
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
GroupedValueSequenceTable
public GroupedValueSequenceTable(GroupSpec[] groupSpecs,
String varName,
XQueryContext aContext)
setToGroupVarName
public void setToGroupVarName(String varName)
getToGroupVarName
public String getToGroupVarName()
iterate
public Iterator iterate()
add
public void add(Item item)
throws XPathException
- Add
item
in the correct GroupedValueSequence
.
Create correct GroupedValueSequence if needed. Insertion based on
the group specs of a "group by" clause.
- Throws:
XPathException
addAll
public void addAll(Sequence sequence)
throws XPathException
- Add all items of a sequence
- Parameters:
sequence
-
- Throws:
XPathException
Copyright (C) Wolfgang Meier. All rights reserved.