java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.jena.query.text.filter.SelectiveFoldingFilter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.lucene.util.Unwrappable<org.apache.lucene.analysis.TokenStream>
public final class SelectiveFoldingFilter
extends org.apache.lucene.analysis.TokenFilter
A Lucene filter based on ASCIIFoldingFilter, but that allows the
caller to provide a white list for selective folding filter. Entries in the
white list are ignored during the filtering. This is useful for languages
that require certain characters to be ignored.
- See Also:
-
ASCIIFoldingFilter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.State
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.TokenStream
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
-
Constructor Summary
ConstructorDescriptionSelectiveFoldingFilter
(org.apache.lucene.analysis.TokenStream input, org.apache.lucene.analysis.CharArraySet whitelisted) -
Method Summary
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, end, reset, unwrap
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
-
Constructor Details
-
SelectiveFoldingFilter
public SelectiveFoldingFilter(org.apache.lucene.analysis.TokenStream input, org.apache.lucene.analysis.CharArraySet whitelisted)
-
-
Method Details
-
incrementToken
- Specified by:
incrementToken
in classorg.apache.lucene.analysis.TokenStream
- Throws:
IOException
-