org.exist.xquery.value
Class GroupedValueSequenceTable

java.lang.Object
  extended by java.util.Dictionary
      extended by java.util.Hashtable
          extended by 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

Constructor Summary
GroupedValueSequenceTable(GroupSpec[] groupSpecs, String varName, XQueryContext aContext)
           
 
Method Summary
 void add(Item item)
          Add item in the correct GroupedValueSequence.
 void addAll(Sequence sequence)
          Add all items of a sequence
 String getToGroupVarName()
           
 Iterator iterate()
           
 void setToGroupVarName(String varName)
           
 
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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupedValueSequenceTable

public GroupedValueSequenceTable(GroupSpec[] groupSpecs,
                                 String varName,
                                 XQueryContext aContext)
Method Detail

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.