Class CollationItemSet

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

public final class CollationItemSet extends Object implements ItemSet
This set indexes items under the terms of a collation.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • CollationItemSet

      public CollationItemSet(Collation coll)
      Constructor.
      Parameters:
      coll - collation
  • Method Details

    • 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 (can be null)
      Returns:
      true if the key did not exist yet and was stored
      Throws:
      QueryException - query exception
    • iterator

      public Iterator<Item> iterator()
      Specified by:
      iterator in interface Iterable<Item>