Class IndexNames

java.lang.Object
org.basex.index.IndexNames

public final class IndexNames extends Object
Names and namespace uris of elements/attribute to index.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndexNames(IndexType type, Data data)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(byte[][] qname)
    Checks if the specified name is an index candidate.
    boolean
    contains(int pre, boolean text)
    Checks if the name of the addressed database entry is to be indexed.
    boolean
    containsIds(boolean idref)
    Checks if the index names contain all relevant id or idref attributes.
    boolean
    Checks if the list of names is empty.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IndexNames

      public IndexNames(IndexType type, Data data)
      Constructor.
      Parameters:
      type - index type
      data - data reference
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Checks if the list of names is empty.
      Returns:
      result of check
    • contains

      public boolean contains(int pre, boolean text)
      Checks if the name of the addressed database entry is to be indexed.
      Parameters:
      pre - pre value
      text - text flag
      Returns:
      result of check
    • contains

      public boolean contains(byte[][] qname)
      Checks if the specified name is an index candidate.
      Parameters:
      qname - local name and namespace uri (reference or array entries can be null)
      Returns:
      result of check
    • containsIds

      public boolean containsIds(boolean idref)
      Checks if the index names contain all relevant id or idref attributes.
      Parameters:
      idref - idref flag
      Returns:
      result of check