org.apache.lucene.index
public class SegmentTermPositionVector extends SegmentTermVector implements TermPositionVector
Field Summary | |
---|---|
static int[] | EMPTY_TERM_POS |
protected TermVectorOffsetInfo[][] | offsets |
protected int[][] | positions |
Constructor Summary | |
---|---|
SegmentTermPositionVector(String field, String[] terms, int[] termFreqs, int[][] positions, TermVectorOffsetInfo[][] offsets) |
Method Summary | |
---|---|
TermVectorOffsetInfo[] | getOffsets(int index)
Returns an array of TermVectorOffsetInfo in which the term is found.
|
int[] | getTermPositions(int index)
Returns an array of positions in which the term is found.
|
Parameters: index The position in the array to get the offsets from
Returns: An array of TermVectorOffsetInfo objects or the empty list
See Also: Token
indexOf
method.