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

public static enum StreamingAggregator.AggOutcome extends Enum<StreamingAggregator.AggOutcome>
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 Details

  • Method Details

    • values

      public static StreamingAggregator.AggOutcome[] 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

      public static StreamingAggregator.AggOutcome valueOf(String name)
      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 name
      NullPointerException - if the argument is null