Class IfScoreResolver
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.resolver.IfScoreResolver
-
- All Implemented Interfaces:
ScoreResolver<If>
public class IfScoreResolver extends Object implements ScoreResolver<If>
AnIfScoreResolver
is an implementation ofScoreResolver
for theIf
operation.The score will be the maximum of the operations contained within the If operation, regardless of which of the two possibilities are executed.
-
-
Constructor Summary
Constructors Constructor Description IfScoreResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getScore(If operation)
Should return a (nullable) score for a given operation.Integer
getScore(If operation, ScoreResolver defaultScoreResolver)
Should return a (nullable) score for a given operation.
-
-
-
Method Detail
-
getScore
public Integer getScore(If operation)
Description copied from interface:ScoreResolver
Should return a (nullable) score for a given operation.- Specified by:
getScore
in interfaceScoreResolver<If>
- 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(If operation, ScoreResolver defaultScoreResolver)
Description copied from interface:ScoreResolver
Should return a (nullable) score for a given operation.- Specified by:
getScore
in interfaceScoreResolver<If>
- 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
-
-