Class WordDelimiterIterator

java.lang.Object
org.apache.lucene.analysis.miscellaneous.WordDelimiterIterator

public final class WordDelimiterIterator extends Object
A BreakIterator-like API for iterating over subwords in text, according to WordDelimiterGraphFilter rules.
NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
  • Field Details

    • ALPHA

      public static final int ALPHA
      See Also:
    • ALPHANUM

      public static final int ALPHANUM
      See Also:
    • DONE

      public static final int DONE
      Indicates the end of iteration
      See Also:
    • DEFAULT_WORD_DELIM_TABLE

      public static final byte[] DEFAULT_WORD_DELIM_TABLE
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public static byte getType(int ch)
      Computes the type of the given character
      Parameters:
      ch - Character whose type is to be determined
      Returns:
      Type of the character