Enum Class SweepOrder
- All Implemented Interfaces:
Serializable,Comparable<SweepOrder>,Constable
The two answer different questions, and the choice decides whether
SweepRanking means anything at all — see NATURAL.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SweepOrderReturns the enum constant of this class with the specified name.static SweepOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.wire()Internal: the value sent as theorderquery parameter.
-
Enum Constant Details
-
RANKED
The display leaderboard: sorted, and capped at a display limit.This is the platform default, and the view
SweepRankingapplies to.ExecuteSweepResult.getTruncated()istruewhen the cap actually bit, in which case rows exist that this view does not carry —NATURALis how to reach them. -
NATURAL
Every available row, untruncated, in deterministicrunIxorder.This is the view to read when you are materialising durable trial rows rather than showing a top-N, and the only way to reach rows the ranked view dropped when
ExecuteSweepResult.getTruncated()istrue.SweepRankingis ignored here. This view is always ordered byrunIx, so a plateau or raw preference set alongside it has no effect and the response reportsraw. Rank, plateau score and neighbour count belong to the ranked view and are not part of this one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
wire
Internal: the value sent as theorderquery parameter. Exposed so the SDK's own helpers can pass it through without re-encoding.- Returns:
- the wire token for this view
-