Package com.yahoo.searchlib.aggregation
Class FS4Hit
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.aggregation.Hit
com.yahoo.searchlib.aggregation.FS4Hit
- All Implemented Interfaces:
Cloneable
A single hit from a Vespa content cluster
- Author:
- havardpe
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFS4Hit()Constructs an empty result node.FS4Hit(int path, com.yahoo.document.GlobalId globalId, double rank) Creates a hit with the given path and document id.FS4Hit(int path, com.yahoo.document.GlobalId globalId, double rank, int distributionKey) Creates a hit with the given path and document id. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the distribution key for the node producing this hit.com.yahoo.document.GlobalIdReturns the global document id on the search node returning this hit.intgetPath()Returns the (mangled) network path back to the search node returning this hit.inthashCode()protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) protected intprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.aggregation.Hit
getContext, getRank, setContextMethods inherited from class com.yahoo.vespa.objects.Identifiable
clone, create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toStringMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
FS4Hit
public FS4Hit()Constructs an empty result node. -
FS4Hit
public FS4Hit(int path, com.yahoo.document.GlobalId globalId, double rank) Creates a hit with the given path and document id.- Parameters:
path- The mangled search node path.globalId- The local document id.rank- The rank of this hit.
-
FS4Hit
public FS4Hit(int path, com.yahoo.document.GlobalId globalId, double rank, int distributionKey) Creates a hit with the given path and document id.- Parameters:
path- The mangled search node path.globalId- The local document id.rank- The rank of this hit.distributionKey- The doc stamp.
-
-
Method Details
-
getPath
public int getPath()Returns the (mangled) network path back to the search node returning this hit. -
getGlobalId
public com.yahoo.document.GlobalId getGlobalId()Returns the global document id on the search node returning this hit. -
getDistributionKey
public int getDistributionKey()Returns the distribution key for the node producing this hit. -
onGetClassId
protected int onGetClassId()- Overrides:
onGetClassIdin classcom.yahoo.vespa.objects.Identifiable
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classHit
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classHit
-
hashCode
public int hashCode() -
equals
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classHit
-