public enum ScoreMode extends Enum<ScoreMode>
Enum Constant and Description |
---|
COMPLETE
Produced scorers will allow visiting all matches and get their score.
|
COMPLETE_NO_SCORES
Produced scorers will allow visiting all matches but scores won't be
available.
|
TOP_SCORES
Produced scorers will optionally allow skipping over non-competitive
hits using the
Scorable.setMinCompetitiveScore(float) API. |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
needsScores()
Whether this
ScoreMode needs to compute scores. |
static ScoreMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScoreMode COMPLETE
public static final ScoreMode COMPLETE_NO_SCORES
public static final ScoreMode TOP_SCORES
Scorable.setMinCompetitiveScore(float)
API.public static ScoreMode[] values()
for (ScoreMode c : ScoreMode.values()) System.out.println(c);
public static ScoreMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean needsScores()
ScoreMode
needs to compute scores.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.