protected void configureFunctionScore() { Multibinder<ScoreFunctionParser> parserMapBinder = Multibinder.newSetBinder(binder(), ScoreFunctionParser.class); for (Class<? extends ScoreFunctionParser> clazz : functionScoreParsers) { parserMapBinder.addBinding().to(clazz); } bind(ScoreFunctionParserMapper.class); }
public ScoreFunctionSpec(ParseField name, Writeable.Reader<T> reader, ScoreFunctionParser<T> parser) { super(name, reader, parser); }
public ScoreFunctionSpec(String name, Writeable.Reader<T> reader, ScoreFunctionParser<T> parser) { super(name, reader, parser); }
public void registerFunctionScoreParser(Class<? extends ScoreFunctionParser> parser) { functionScoreParsers.add(parser); }