Class Hit

java.lang.Object
com.yahoo.search.predicate.Hit
All Implemented Interfaces:
Comparable<Hit>

public class Hit extends Object implements Comparable<Hit>
Represents a hit from the predicate search algorithm. Each hit is associated with a subquery bitmap, indicating which subqueries the hit represents.
Author:
Magnar Nedland
  • Constructor Details

    • Hit

      public Hit(int docId)
    • Hit

      public Hit(int docId, long subquery)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDocId

      public int getDocId()
    • getSubquery

      public long getSubquery()
    • compareTo

      public int compareTo(Hit o)
      Specified by:
      compareTo in interface Comparable<Hit>