@SuppressWarnings("unchecked")
public void loadDocScore(String type, String provider, String path) {
LOG.info("Loading doc scores of type: " + type + ", from: " + path + ", provider: " + provider);
try {
Class<? extends DocScoreTable> clz = (Class<? extends DocScoreTable>) Class.forName(provider);
DocScoreTable s = clz.newInstance();
s.initialize(path, fs);
docScores.put(type, s);
LOG.info(s.getDocCount() + ", " + s.getDocnoOffset());
} catch (Exception e) {
throw new RuntimeException("Erorr reading doc scores!", e);
}
LOG.info("Loading done.");
}