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_LABELbyte with an extra.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) bytesepLabel(package private) BytesRefBuilderspare-
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 BytesRefchangeToken(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:TokenStreamToAutomatonSubclass and implement this if you need to change the token (such as escaping certain bytes) before it's turned into a graph.- Overrides:
changeTokenin classTokenStreamToAutomaton
-
-