public static enum StreamingAggregator.AggOutcome extends Enum<StreamingAggregator.AggOutcome>
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.
HashAggregator.AggOutcome| Enum Constant and Description |
|---|
CLEANUP_AND_RETURN |
RETURN_AND_RESET |
RETURN_OUTCOME |
UPDATE_AGGREGATOR |
| Modifier and Type | Method and Description |
|---|---|
static StreamingAggregator.AggOutcome |
valueOf(String name)
Returns 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.
|
public static final StreamingAggregator.AggOutcome RETURN_OUTCOME
public static final StreamingAggregator.AggOutcome CLEANUP_AND_RETURN
public static final StreamingAggregator.AggOutcome UPDATE_AGGREGATOR
public static final StreamingAggregator.AggOutcome RETURN_AND_RESET
public static StreamingAggregator.AggOutcome[] values()
for (StreamingAggregator.AggOutcome c : StreamingAggregator.AggOutcome.values()) System.out.println(c);
public static StreamingAggregator.AggOutcome 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 nullCopyright © 2021 The Apache Software Foundation. All rights reserved.