java.lang.Object
org.apache.lucene.search.ScoreDoc
org.elasticsearch.search.rank.RankDoc
- All Implemented Interfaces:
Writeable
RankDoc is the base class for all ranked results.
Subclasses should extend this with additional information
required for their global ranking method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intintIf this document has been ranked, this is its final rrf ranking from all the result sets.Fields inherited from class org.apache.lucene.search.ScoreDoc
doc, score, shardIndex -
Constructor Summary
ConstructorsModifierConstructorDescriptionRankDoc(int doc, float score, int shardIndex) protectedRankDoc(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanprotected abstract intprotected abstract voiddoWriteTo(StreamOutput out) final booleanfinal inthashCode()toString()final voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
NO_RANK
public static final int NO_RANK- See Also:
-
rank
public int rankIf this document has been ranked, this is its final rrf ranking from all the result sets.
-
-
Constructor Details
-
RankDoc
public RankDoc(int doc, float score, int shardIndex) -
RankDoc
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
doWriteTo
- Throws:
IOException
-
equals
-
doEquals
-
hashCode
public final int hashCode() -
doHashCode
protected abstract int doHashCode() -
toString
- Overrides:
toStringin classorg.apache.lucene.search.ScoreDoc
-