@Deprecated public final class Lucene43NGramTokenizer extends Tokenizer
NGramTokenizer.AttributeSource.State| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NGRAM_SIZE
Deprecated.
|
static int |
DEFAULT_MIN_NGRAM_SIZE
Deprecated.
|
DEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
Lucene43NGramTokenizer()
Deprecated.
Creates NGramTokenizer with default min and max n-grams.
|
Lucene43NGramTokenizer(AttributeFactory factory,
int minGram,
int maxGram)
Deprecated.
Creates NGramTokenizer with given min and max n-grams.
|
Lucene43NGramTokenizer(int minGram,
int maxGram)
Deprecated.
Creates NGramTokenizer with given min and max n-grams.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Deprecated.
|
boolean |
incrementToken()
Deprecated.
Returns the next token in the stream, or null at EOS.
|
void |
reset()
Deprecated.
|
close, correctOffset, setReaderaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic static final int DEFAULT_MIN_NGRAM_SIZE
public static final int DEFAULT_MAX_NGRAM_SIZE
public Lucene43NGramTokenizer(int minGram,
int maxGram)
minGram - the smallest n-gram to generatemaxGram - the largest n-gram to generatepublic Lucene43NGramTokenizer(AttributeFactory factory, int minGram, int maxGram)
factory - AttributeFactory to useminGram - the smallest n-gram to generatemaxGram - the largest n-gram to generatepublic Lucene43NGramTokenizer()
public boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic void end()
throws IOException
end in class TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class TokenizerIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.