Package org.apache.lucene.analysis.ja
Class JapaneseTokenizer.WrappedPositionArray
java.lang.Object
org.apache.lucene.analysis.ja.JapaneseTokenizer.WrappedPositionArray
- Enclosing class:
- JapaneseTokenizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private int
private JapaneseTokenizer.Position[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
freeBefore
(int pos) 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
private boolean
inBounds
(int pos) void
reset()
-
Field Details
-
positions
-
nextWrite
private int nextWrite -
nextPos
private int nextPos -
count
private int count
-
-
Constructor Details
-
WrappedPositionArray
public WrappedPositionArray()
-
-
Method Details
-
reset
public void reset() -
get
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)
-