Class VdsHit

  • All Implemented Interfaces:
    Cloneable

    public class VdsHit
    extends Hit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int classId  
    • Constructor Summary

      Constructors 
      Constructor Description
      VdsHit()  
      VdsHit​(String docId, byte[] summary, double rank)
      Create a hit with the given path and document id.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      String getDocId()
      Obtain the local document id of this hit.
      RawData getSummary()
      Obtain the summary blob for this hit.
      int hashCode()  
      protected void onDeserialize​(com.yahoo.vespa.objects.Deserializer buf)  
      protected int onGetClassId()  
      protected void onSerialize​(com.yahoo.vespa.objects.Serializer buf)  
      void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)  
      • Methods inherited from class com.yahoo.vespa.objects.Identifiable

        clone, create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString
      • Methods inherited from class com.yahoo.vespa.objects.Selectable

        select, select, selectMembers
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • VdsHit

        public VdsHit()
      • VdsHit

        public VdsHit​(String docId,
                      byte[] summary,
                      double rank)
        Create a hit with the given path and document id.
        Parameters:
        summary - The summary blob standard fs4 coding.
        docId - The local document id.
        rank - The rank of this hit.
    • Method Detail

      • getSummary

        public RawData getSummary()
        Obtain the summary blob for this hit.
        Returns:
        The summary blob.
      • getDocId

        public String getDocId()
        Obtain the local document id of this hit.
        Returns:
        The local document id.
      • onGetClassId

        protected int onGetClassId()
        Overrides:
        onGetClassId in class com.yahoo.vespa.objects.Identifiable
      • onSerialize

        protected void onSerialize​(com.yahoo.vespa.objects.Serializer buf)
        Overrides:
        onSerialize in class Hit
      • onDeserialize

        protected void onDeserialize​(com.yahoo.vespa.objects.Deserializer buf)
        Overrides:
        onDeserialize in class Hit
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Hit
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Hit
      • visitMembers

        public void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)
        Overrides:
        visitMembers in class Hit