Class WordDelimiterFilter.WordDelimiterConcatenation
- java.lang.Object
-
- org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter.WordDelimiterConcatenation
-
- Enclosing class:
- WordDelimiterFilter
final class WordDelimiterFilter.WordDelimiterConcatenation extends java.lang.ObjectA WDF concatenated 'run'
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringBuilderbuffer(package private) intendOffset(package private) intstartOffset(package private) intsubwordCount(package private) inttype
-
Constructor Summary
Constructors Constructor Description WordDelimiterConcatenation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidappend(char[] text, int offset, int length)Appends the given text of the given length, to the concetenation at the given offset(package private) voidclear()Clears the concatenation and resets its state(package private) booleanisEmpty()Determines if the concatenation is empty(package private) voidwrite()Writes the concatenation to the attributes(package private) voidwriteAndClear()Convenience method for the common scenario of having to write the concetenation and then clearing its state
-
-
-
Method Detail
-
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 appendoffset- Offset in the concetenation to add the textlength- Length of the text to append
-
write
void write()
Writes the concatenation to the attributes
-
isEmpty
boolean isEmpty()
Determines if the concatenation is empty- Returns:
trueif the concatenation is empty,falseotherwise
-
clear
void clear()
Clears the concatenation and resets its state
-
writeAndClear
void writeAndClear()
Convenience method for the common scenario of having to write the concetenation and then clearing its state
-
-