mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-03 01:38:45 +02:00
13 lines
334 B
Java
13 lines
334 B
Java
|
package com.twitter.search.common.query;
|
||
|
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
|
||
|
/**
|
||
|
* The interface for objects that can provide hit attributes for a document.
|
||
|
*/
|
||
|
public interface HitAttributeProvider {
|
||
|
/** Returns the hit attributes for the given document. */
|
||
|
Map<Integer, List<String>> getHitAttribution(int docId);
|
||
|
}
|