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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PositionBasedTermVectorMapper.TVPositionInfo
public PositionBasedTermVectorMapper.TVPositionInfo(int position,
boolean storeOffsets)
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 (to
getTerms()
) 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.
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.