Class PositionBasedTermVectorMapper.TVPositionInfo

    • Constructor Detail

      • TVPositionInfo

        public TVPositionInfo​(int position,
                              boolean storeOffsets)
    • 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 (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.