2021-01-30 22:14:48 +01:00
|
|
|
package it.cavallium.dbengine.lucene;
|
2020-12-07 22:15:18 +01:00
|
|
|
|
2021-02-04 22:42:57 +01:00
|
|
|
import java.io.IOException;
|
|
|
|
|
2020-12-07 22:15:18 +01:00
|
|
|
public interface LuceneParallelStreamConsumer {
|
|
|
|
|
|
|
|
/**
|
2021-01-29 17:19:01 +01:00
|
|
|
* @param docId document id
|
|
|
|
* @param score score of document
|
2020-12-07 22:15:18 +01:00
|
|
|
* @return true to continue, false to stop the execution
|
|
|
|
*/
|
2021-02-04 22:42:57 +01:00
|
|
|
boolean consume(int docId, float score) throws IOException;
|
2020-12-07 22:15:18 +01:00
|
|
|
}
|