org.crosswire.jsword.index.lucene.analysis
Class StrongsNumberFilter
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.crosswire.jsword.index.lucene.analysis.AbstractBookTokenFilter
org.crosswire.jsword.index.lucene.analysis.StrongsNumberFilter
- All Implemented Interfaces:
- Closeable
public class StrongsNumberFilter
- extends AbstractBookTokenFilter
A StrongsNumberFilter normalizes Strong's Numbers.
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State |
Field Summary |
private static org.slf4j.Logger |
log
The log stream |
private StrongsNumber |
number
|
private org.apache.lucene.analysis.tokenattributes.TermAttribute |
termAtt
|
Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
Methods inherited from class org.apache.lucene.analysis.TokenFilter |
close, end, reset |
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, restoreState, toString |
termAtt
private org.apache.lucene.analysis.tokenattributes.TermAttribute termAtt
number
private StrongsNumber number
log
private static final org.slf4j.Logger log
- The log stream
StrongsNumberFilter
public StrongsNumberFilter(org.apache.lucene.analysis.TokenStream in)
- Construct filtering in.
StrongsNumberFilter
public StrongsNumberFilter(Book book,
org.apache.lucene.analysis.TokenStream in)
- Construct filtering in.
incrementToken
public boolean incrementToken()
throws IOException
- Specified by:
incrementToken
in class org.apache.lucene.analysis.TokenStream
- Throws:
IOException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class AbstractBookTokenFilter
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractBookTokenFilter