Enum StreamingAggregator.AggOutcome
java.lang.Object
java.lang.Enum<StreamingAggregator.AggOutcome>
org.apache.drill.exec.physical.impl.aggregate.StreamingAggregator.AggOutcome
- All Implemented Interfaces:
Serializable
,Comparable<StreamingAggregator.AggOutcome>
- Enclosing interface:
- StreamingAggregator
The Aggregator can return one of the following outcomes:
RETURN_OUTCOME: The aggregation has seen a change in the group and should send data downstream. If complex writers are involved, then rebuild schema.
CLEANUP_AND_RETURN: End of all data. Return the data downstream, and cleanup.
UPDATE_AGGREGATOR: A schema change was encountered. The aggregator's generated code and (possibly) container need to be updated
RETURN_AND_RESET: If the aggregator encounters an EMIT, then that implies the end of a data set but not of all the data. Return the data (aggregated so far) downstream, reset the internal state variables and come back for the next data set.
- See Also:
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static StreamingAggregator.AggOutcome[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RETURN_OUTCOME
-
CLEANUP_AND_RETURN
-
UPDATE_AGGREGATOR
-
RETURN_AND_RESET
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-