public static class

PositionBasedTermVectorMapper.TVPositionInfo

extends Object
java.lang.Object
   ↳ org.apache.lucene.index.PositionBasedTermVectorMapper.TVPositionInfo

Class Overview

Container for a term at a position

Summary

Public Constructors
PositionBasedTermVectorMapper.TVPositionInfo(int position, boolean storeOffsets)
Public Methods
List<TermVectorOffsetInfo> getOffsets()
Parallel list (to getTerms()) of TermVectorOffsetInfo objects.
int getPosition()
List<String> getTerms()
Note, there may be multiple terms at the same position
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PositionBasedTermVectorMapper.TVPositionInfo (int position, boolean storeOffsets)

Public Methods

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.

public int getPosition ()

Returns
  • The position of the term

public List<String> getTerms ()

Note, there may be multiple terms at the same position

Returns
  • A List of Strings