use of uk.gov.gchq.gaffer.store.operation.resolver.WhileScoreResolver in project Gaffer by gchq.
the class ScoreOperationChainHandler method addDefaultScoreResolvers.
/**
* Adds Gaffer's native {@link ScoreResolver} implementations to the list of available <code>ScoreResolver</code>s.
* Any new implementations should be added to the map in this method, along with their respective class.
*
* @return a map of Operation class to ScoreResolver implementation
*/
private static Map<Class<? extends Operation>, ScoreResolver> addDefaultScoreResolvers() {
final Map<Class<? extends Operation>, ScoreResolver> defaultResolvers = new HashMap<>();
defaultResolvers.put(NamedOperation.class, new NamedOperationScoreResolver());
defaultResolvers.put(If.class, new IfScoreResolver());
defaultResolvers.put(While.class, new WhileScoreResolver());
return Collections.unmodifiableMap(defaultResolvers);
}
Aggregations