Class StemmerOverrideFilter.StemmerOverrideMap
- java.lang.Object
-
- org.apache.lucene.analysis.miscellaneous.StemmerOverrideFilter.StemmerOverrideMap
-
- Enclosing class:
- StemmerOverrideFilter
public static final class StemmerOverrideFilter.StemmerOverrideMap extends Object
A read-only 4-byte FST backed map that allows fast case-insensitive key value lookups forStemmerOverrideFilter
-
-
Constructor Summary
Constructors Constructor Description StemmerOverrideMap(FST<BytesRef> fst, boolean ignoreCase)
Creates a newStemmerOverrideFilter.StemmerOverrideMap
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytesRef
get(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader)
Returns the value mapped to the given key ornull
if the key is not in the FST dictionary.FST.BytesReader
getBytesReader()
Returns aFST.BytesReader
to pass to theget(char[], int, FST.Arc, FST.BytesReader)
method.
-
-
-
Constructor Detail
-
StemmerOverrideMap
public StemmerOverrideMap(FST<BytesRef> fst, boolean ignoreCase)
Creates a newStemmerOverrideFilter.StemmerOverrideMap
- Parameters:
fst
- the fst to lookup the overridesignoreCase
- if the keys case should be ingored
-
-
Method Detail
-
getBytesReader
public FST.BytesReader getBytesReader()
Returns aFST.BytesReader
to pass to theget(char[], int, FST.Arc, FST.BytesReader)
method.
-
get
public BytesRef get(char[] buffer, int bufferLen, FST.Arc<BytesRef> scratchArc, FST.BytesReader fstReader) throws IOException
Returns the value mapped to the given key ornull
if the key is not in the FST dictionary.- Throws:
IOException
-
-