public class GroupCollector extends Object implements TridentCollector
Constructor and Description |
---|
GroupCollector(TridentCollector collector,
ComboList.Factory factory) |
Modifier and Type | Method and Description |
---|---|
void |
emit(List<Object> values)
Emits a tuple to a Stream.
|
void |
flush()
Flush any buffered tuples (when batching is enabled).
|
void |
reportError(Throwable t)
Reports an error.
|
public GroupCollector(TridentCollector collector, ComboList.Factory factory)
public void emit(List<Object> values)
TridentCollector
emit
in interface TridentCollector
values
- a list of values of which the tuple will be composedpublic void flush()
TridentCollector
flush
in interface TridentCollector
public void reportError(Throwable t)
TridentCollector
Note that calling this method does not alter the processing of a batch. To explicitly fail a batch and trigger
a replay, components should throw FailedException
.
reportError
in interface TridentCollector
t
- The instance of the error (Throwable) being reported.Copyright © 2023 The Apache Software Foundation. All rights reserved.