Skip to content

Instantly share code, notes, and snippets.

@umeshdangat
Created May 18, 2017 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umeshdangat/a4c142c8b02d296f2731f3a69dd47e51 to your computer and use it in GitHub Desktop.
Save umeshdangat/a4c142c8b02d296f2731f3a69dd47e51 to your computer and use it in GitHub Desktop.
Interfaces
public interface ScorerFactory {
Scorer createScorer(Map<String, Object> params);
}
public interface Scorer {
double score(Document document);
}
public interface Document {
<T> T get(Class<T> clz, String field);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment