
com.groupbyinc.flux.common.apache.lucene.analysis.ngram.NGramTokenizer.class Maven / Gradle / Ivy
???? 3 ? Fcom/groupbyinc/flux/common/apache/lucene/analysis/ngram/NGramTokenizer ;com/groupbyinc/flux/common/apache/lucene/analysis/Tokenizer NGramTokenizer.java Ucom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils$CharacterBuffer Ecom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils CharacterBuffer DEFAULT_MIN_NGRAM_SIZE I DEFAULT_MAX_NGRAM_SIZE charUtils GLcom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils;
charBuffer WLcom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils$CharacterBuffer; buffer [I bufferStart bufferEnd offset gramSize minGram maxGram exhausted Z lastCheckedChar lastNonTokenChar edgesOnly termAtt ULcom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/CharTermAttribute; posIncAtt ^Lcom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/PositionIncrementAttribute; posLenAtt [Lcom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/PositionLengthAttribute; offsetAtt SLcom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/OffsetAttribute; $assertionsDisabled (IIZ)V ()V * ,
- Scom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/CharTermAttribute / addAttribute L(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/lucene/util/Attribute; 1 2
3 ! " 5 \com/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/PositionIncrementAttribute 7 # $ 9 Ycom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/PositionLengthAttribute ; % & = Qcom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/OffsetAttribute ? ' ( A init C +
D this HLcom/groupbyinc/flux/common/apache/lucene/analysis/ngram/NGramTokenizer; (II)V * +
I F(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory;IIZ)V C(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory;)V * L
M factory @Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory; E(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory;II)V * K
R * H
T getInstance I()Lcom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils; V W
X Z "java/lang/IllegalArgumentException \ !minGram must be greater than zero ^ (Ljava/lang/String;)V * `
] a (minGram must not be greater than maxGram c e g i newCharacterBuffer Z(I)Lcom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils$CharacterBuffer; k l
m o getBuffer ()[C q r
s u resizeBuffer (I)[C w x 0 y incrementToken ()Z java/io/IOException } clearAttributes ,
? ? ? ? java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? ? ? input Ljava/io/Reader; ? ? ? fill k(Lcom/groupbyinc/flux/common/apache/lucene/analysis/util/CharacterUtils$CharacterBuffer;Ljava/io/Reader;I)Z ? ?
? getLength ()I ? ?
? toCodePoints
([CII[II)I ? ?
? ? ) ? java/lang/AssertionError ?
? - consume ? ,
? updateLastNonTokenChar ? ,
? r 0 ? toChars
([III[CI)I ? ?
? setLength X(I)Lcom/groupbyinc/flux/common/apache/lucene/analysis/tokenattributes/CharTermAttribute; ? ? 0 ? setPositionIncrement (I)V ? ? 8 ? setPositionLength ? ? <