Package org.apache.lucene.index
Class PositionBasedTermVectorMapper.TVPositionInfo
- java.lang.Object
-
- org.apache.lucene.index.PositionBasedTermVectorMapper.TVPositionInfo
-
- Enclosing class:
- PositionBasedTermVectorMapper
public static class PositionBasedTermVectorMapper.TVPositionInfo extends Object
Container for a term at a position
-
-
Constructor Summary
Constructors Constructor Description TVPositionInfo(int position, boolean storeOffsets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TermVectorOffsetInfo>
getOffsets()
Parallel list (togetTerms()
) of TermVectorOffsetInfo objects.int
getPosition()
List<String>
getTerms()
Note, there may be multiple terms at the same position
-
-
-
Method Detail
-
getPosition
public int getPosition()
- Returns:
- The position of the term
-
getTerms
public List<String> getTerms()
Note, there may be multiple terms at the same position- Returns:
- A List of Strings
-
getOffsets
public List<TermVectorOffsetInfo> getOffsets()
Parallel list (togetTerms()
) of TermVectorOffsetInfo objects. There may be multiple entries since there may be multiple terms at a position- Returns:
- A List of TermVectorOffsetInfo objects, if offsets are stored.
-
-