Class WordDelimiterGraphFilter.WordDelimiterConcatenation

java.lang.Object
org.apache.lucene.analysis.miscellaneous.WordDelimiterGraphFilter.WordDelimiterConcatenation
Enclosing class:
WordDelimiterGraphFilter

final class WordDelimiterGraphFilter.WordDelimiterConcatenation extends Object
A WDF concatenated 'run'
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final StringBuilder
     
    (package private) int
     
    (package private) int
     
    (package private) int
     
    (package private) int
     
    (package private) int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    append(char[] text, int offset, int length)
    Appends the given text of the given length, to the concetenation at the given offset
    (package private) void
    Clears the concatenation and resets its state
    (package private) boolean
    Determines if the concatenation is empty
    (package private) boolean
     
    (package private) void
    Writes the concatenation to part buffer

    Methods inherited from class java.lang.Object

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

    • buffer

      final StringBuilder buffer
    • startPart

      int startPart
    • endPart

      int endPart
    • startPos

      int startPos
    • type

      int type
    • subwordCount

      int subwordCount
  • Constructor Details

    • WordDelimiterConcatenation

      WordDelimiterConcatenation()
  • Method Details

    • append

      void append(char[] text, int offset, int length)
      Appends the given text of the given length, to the concetenation at the given offset
      Parameters:
      text - Text to append
      offset - Offset in the concetenation to add the text
      length - Length of the text to append
    • write

      void write()
      Writes the concatenation to part buffer
    • isEmpty

      boolean isEmpty()
      Determines if the concatenation is empty
      Returns:
      true if the concatenation is empty, false otherwise
    • isNotEmpty

      boolean isNotEmpty()
    • clear

      void clear()
      Clears the concatenation and resets its state