Class HitLocation


  • @Uncommitted
    @Public
    public class HitLocation
    extends Object
    A FTS result hit location indicates at which position a given term occurs inside a given field. In case the field is an array, arrayPositions will indicate which index/indices in the array contain the term.
    Since:
    2.3.0
    Author:
    Simon Baslé, Michael Nitschinger
    • Constructor Detail

      • HitLocation

        public HitLocation​(String field,
                           String term,
                           long pos,
                           long start,
                           long end,
                           long[] arrayPositions)
      • HitLocation

        public HitLocation​(String field,
                           String term,
                           long pos,
                           long start,
                           long end)
    • Method Detail

      • field

        public String field()
      • pos

        public long pos()
      • start

        public long start()
      • end

        public long end()
      • arrayPositions

        public long[] arrayPositions()
        Returns:
        the array positions, or null if not applicable.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object