Package com.yahoo.searchlib.aggregation
Class Hit
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- com.yahoo.searchlib.aggregation.Hit
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Object
getContext()
Returns the context object of this hit.double
getRank()
Obtain the rank of this hit.int
hashCode()
protected void
onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
protected void
onSerialize(com.yahoo.vespa.objects.Serializer buf)
Hit
setContext(java.lang.Object context)
Sets the context object of this hit.void
visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
-
-
-
Method Detail
-
getRank
public double getRank()
Obtain the rank of this hit. This is a comparable rank to allow multilevel sorting on arbitrary rank type.- Returns:
- generic rank value
-
getContext
public java.lang.Object getContext()
Returns the context object of this hit.- Returns:
- The context object.
-
setContext
public Hit setContext(java.lang.Object context)
Sets the context object of this hit. This is not serialized, and is merely a tag used by the QRS.- Parameters:
context
- The context to set.- Returns:
- This, to allow chaining.
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf)
- Overrides:
onSerialize
in classcom.yahoo.vespa.objects.Identifiable
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
- Overrides:
onDeserialize
in classcom.yahoo.vespa.objects.Identifiable
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.yahoo.vespa.objects.Identifiable
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classcom.yahoo.vespa.objects.Identifiable
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
- Overrides:
visitMembers
in classcom.yahoo.vespa.objects.Identifiable
-
-