org.basex.query.util
Class CollationItemSet

java.lang.Object
  extended by org.basex.query.util.CollationItemSet
All Implemented Interfaces:
java.lang.Iterable<Item>, ItemSet

public final class CollationItemSet
extends java.lang.Object
implements ItemSet

This set indexes items under the terms of a collation.

Author:
BaseX Team 2005-13, BSD License, Christian Gruen

Constructor Summary
CollationItemSet(Collation cl)
          Constructor.
 
Method Summary
 boolean add(Item item, InputInfo ii)
          Stores the specified key if it has not been stored before.
 java.util.Iterator<Item> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollationItemSet

public CollationItemSet(Collation cl)
Constructor.

Parameters:
cl - collation
Method Detail

add

public boolean add(Item item,
                   InputInfo ii)
            throws QueryException
Description copied from interface: ItemSet
Stores the specified key if it has not been stored before.

Specified by:
add in interface ItemSet
Parameters:
item - key to be added
ii - input info
Returns:
if the key did not exist yet and was stored
Throws:
QueryException - query exception

iterator

public java.util.Iterator<Item> iterator()
Specified by:
iterator in interface java.lang.Iterable<Item>