Class WhileScoreResolver
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.resolver.WhileScoreResolver
-
- All Implemented Interfaces:
ScoreResolver<While>
public class WhileScoreResolver extends Object implements ScoreResolver<While>
AnWhileScoreResolveris an implementation ofScoreResolverfor theWhileoperation.The score will be the maximum of the transform operation and the delegate operation, multiplied by the minimum of the configured number of max repeats vs the global maximum number of allowed repeats.
This is simply because the number of actual repetitions is nondeterministic, therefore a "worst"-case scenario is considered.
-
-
Constructor Summary
Constructors Constructor Description WhileScoreResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetScore(While operation)Should return a (nullable) score for a given operation.IntegergetScore(While operation, ScoreResolver defaultScoreResolver)Should return a (nullable) score for a given operation.
-
-
-
Method Detail
-
getScore
public Integer getScore(While operation)
Description copied from interface:ScoreResolverShould return a (nullable) score for a given operation.- Specified by:
getScorein interfaceScoreResolver<While>- Parameters:
operation- the provided operation for which the score should be resolved- Returns:
- the score for the operation, otherwise null if not found
-
getScore
public Integer getScore(While operation, ScoreResolver defaultScoreResolver)
Description copied from interface:ScoreResolverShould return a (nullable) score for a given operation.- Specified by:
getScorein interfaceScoreResolver<While>- Parameters:
operation- the provided operation for which the score should be resolveddefaultScoreResolver- the default score resolver to look up scores for nested operations- Returns:
- the score for the operation, otherwise null if not found
-
-