org.apache.lucene.search.payloads
public abstract class PayloadFunction extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
PayloadFunction() |
Modifier and Type | Method and Description |
---|---|
abstract float |
currentScore(int docId,
java.lang.String field,
int start,
int end,
int numPayloadsSeen,
float currentScore,
float currentPayloadScore)
Calculate the score up to this point for this doc and field
|
abstract float |
docScore(int docId,
java.lang.String field,
int numPayloadsSeen,
float payloadScore)
Calculate the final score for all the payloads seen so far for this doc/field
|
abstract boolean |
equals(java.lang.Object o) |
abstract int |
hashCode() |
public abstract float currentScore(int docId, java.lang.String field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore)
docId
- The current docfield
- The fieldstart
- The start position of the matching Spanend
- The end position of the matching SpannumPayloadsSeen
- The number of payloads seen so farcurrentScore
- The current score so farcurrentPayloadScore
- The score for the current payloadSpans
public abstract float docScore(int docId, java.lang.String field, int numPayloadsSeen, float payloadScore)
docId
- The current docfield
- The current fieldnumPayloadsSeen
- The total number of payloads seen on this documentpayloadScore
- The raw score for those payloadspublic abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.