public class CaptureCollector extends Object implements TridentCollector
| Constructor and Description |
|---|
CaptureCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
emit(List<Object> values)
Emits a tuple to a Stream
|
void |
reportError(Throwable t)
Reports an error.
|
void |
setCollector(TridentCollector coll) |
public void setCollector(TridentCollector coll)
public void emit(List<Object> values)
TridentCollectorEmits a tuple to a Stream
emit in interface TridentCollectorvalues - a list of values of which the tuple will be composedpublic void reportError(Throwable t)
TridentCollectorReports an error. The corresponding stack trace will be visible in the Storm UI.
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 TridentCollectort - The instance of the error (Throwable) being reported.Copyright © 2022 The Apache Software Foundation. All Rights Reserved.