org.apache.lucene.analysis
public abstract class BaseCharFilter extends CharFilter
CharFilter
.
You subclass this, and then record mappings by calling
addOffCorrectMap(int, int)
, and then invoke the correct
method to correct an offset.input
Constructor and Description |
---|
BaseCharFilter(CharStream in) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOffCorrectMap(int off,
int cumulativeDiff) |
protected int |
correct(int currentOff)
Retrieve the corrected offset.
|
protected int |
getLastCumulativeDiff() |
close, correctOffset, mark, markSupported, read, reset
public BaseCharFilter(CharStream in)
protected int correct(int currentOff)
correct
in class CharFilter
currentOff
- current offsetprotected int getLastCumulativeDiff()
protected void addOffCorrectMap(int off, int cumulativeDiff)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.