Package org.apache.lucene.analysis.ja
Class JapaneseTokenizer.WrappedPositionArray
- java.lang.Object
-
- org.apache.lucene.analysis.ja.JapaneseTokenizer.WrappedPositionArray
-
- Enclosing class:
- JapaneseTokenizer
static final class JapaneseTokenizer.WrappedPositionArray extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private int
nextPos
private int
nextWrite
private JapaneseTokenizer.Position[]
positions
-
Constructor Summary
Constructors Constructor Description WrappedPositionArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
freeBefore(int pos)
JapaneseTokenizer.Position
get(int pos)
Get Position instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore.private int
getIndex(int pos)
int
getNextPos()
private boolean
inBounds(int pos)
void
reset()
-
-
-
Field Detail
-
positions
private JapaneseTokenizer.Position[] positions
-
nextWrite
private int nextWrite
-
nextPos
private int nextPos
-
count
private int count
-
-
Method Detail
-
reset
public void reset()
-
get
public JapaneseTokenizer.Position get(int pos)
Get Position instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore.
-
getNextPos
public int getNextPos()
-
inBounds
private boolean inBounds(int pos)
-
getIndex
private int getIndex(int pos)
-
freeBefore
public void freeBefore(int pos)
-
-