Class SearchRowLocation


  • @Volatile
    public class SearchRowLocation
    extends Object
    A FTS result row 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
    • Method Detail

      • field

        public String field()
      • pos

        public long pos()
        Returns:
        the position of the term within the field, starting at 1
      • start

        public long start()
        Returns:
        the start offset (in bytes) of the term in the the field
      • end

        public long end()
        Returns:
        the end offset (in bytes) of the term in the the field
      • arrayPositions

        public long[] arrayPositions()
        Contains the positions of the term within any elements.
        Returns:
        the array positions, or null if not applicable.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object