lux.index.analysis
Class OffsetCharFilter
java.lang.Object
java.io.Reader
org.apache.lucene.analysis.CharFilter
org.apache.lucene.analysis.charfilter.BaseCharFilter
lux.index.analysis.OffsetCharFilter
- All Implemented Interfaces:
- Closeable, Readable
public class OffsetCharFilter
- extends org.apache.lucene.analysis.charfilter.BaseCharFilter
exposes the offset map so it can be set externally.
It seems as if it would be better to be able to reset() and reuse this?
But we have to make a new BaseCharFilter for every text node.
| Fields inherited from class org.apache.lucene.analysis.CharFilter |
input |
|
Method Summary |
void |
addOffset(int off,
int cumulativeDiff)
|
int |
read(char[] cbuf,
int off,
int len)
|
| Methods inherited from class org.apache.lucene.analysis.charfilter.BaseCharFilter |
addOffCorrectMap, correct, getLastCumulativeDiff |
| Methods inherited from class org.apache.lucene.analysis.CharFilter |
close, correctOffset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetCharFilter
public OffsetCharFilter(Reader in)
addOffset
public void addOffset(int off,
int cumulativeDiff)
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read in class Reader
- Throws:
IOException
Copyright © 2013. All Rights Reserved.