Class ConcatenateGraphFilter.EscapingTokenStreamToAutomaton
- java.lang.Object
-
- org.apache.lucene.analysis.TokenStreamToAutomaton
-
- org.apache.lucene.analysis.miscellaneous.ConcatenateGraphFilter.EscapingTokenStreamToAutomaton
-
- Enclosing class:
- ConcatenateGraphFilter
private static final class ConcatenateGraphFilter.EscapingTokenStreamToAutomaton extends TokenStreamToAutomaton
Just escapes theConcatenateGraphFilter.SEP_LABEL
byte with an extra.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte
sepLabel
(package private) BytesRefBuilder
spare
-
Fields inherited from class org.apache.lucene.analysis.TokenStreamToAutomaton
HOLE, POS_SEP
-
-
Constructor Summary
Constructors Constructor Description EscapingTokenStreamToAutomaton(int sepLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BytesRef
changeToken(BytesRef in)
Subclass and implement this if you need to change the token (such as escaping certain bytes) before it's turned into a graph.-
Methods inherited from class org.apache.lucene.analysis.TokenStreamToAutomaton
setFinalOffsetGapAsHole, setPreservePositionIncrements, setUnicodeArcs, toAutomaton
-
-
-
-
Field Detail
-
spare
final BytesRefBuilder spare
-
sepLabel
final byte sepLabel
-
-
Method Detail
-
changeToken
protected BytesRef changeToken(BytesRef in)
Description copied from class:TokenStreamToAutomaton
Subclass and implement this if you need to change the token (such as escaping certain bytes) before it's turned into a graph.- Overrides:
changeToken
in classTokenStreamToAutomaton
-
-