Module org.elasticsearch.compute
Enum Class AggregatorMode
- All Implemented Interfaces:
Serializable,Comparable<AggregatorMode>,Constable
"Modes" for running an aggregate function.
Aggregations running on a single "stream" of Blocks should run in
SINGLE mode. This works for aggs that come after a
TopNOperator or another agg.
But all other aggregations run distributed. On many threads on each data node
we run in INITIAL mode to consume raw data and output just enough to
finish the job later. All threads on a node dump the data into the same agg
run in INTERMEDIATE mode to perform "node reduction". Then, on the
coordinating node, the outputs of the "node reduction" goes into the agg in
FINAL mode.
Put another way, all data must flow throw aggregations in one of these two sequences:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMaps intermediate inputs to final outputs.Maps raw inputs to intermediate outputs.Maps intermediate inputs to intermediate outputs.Maps raw inputs to final outputs. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic AggregatorModeReturns the enum constant of this class with the specified name.static AggregatorMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Maps raw inputs to intermediate outputs. -
INTERMEDIATE
Maps intermediate inputs to intermediate outputs. -
FINAL
Maps intermediate inputs to final outputs. -
SINGLE
Maps raw inputs to final outputs. Most useful for testing.
-
-
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
-
isInputPartial
public boolean isInputPartial() -
isOutputPartial
public boolean isOutputPartial()
-