public abstract class BatchOutputCollector extends Object
Constructor and Description |
---|
BatchOutputCollector() |
Modifier and Type | Method and Description |
---|---|
List<Integer> |
emit(List<Object> tuple)
Emits a tuple to the default output stream.
|
abstract List<Integer> |
emit(String streamId,
List<Object> tuple) |
void |
emitDirect(int taskId,
List<Object> tuple)
Emits a tuple to the specified task on the default output stream.
|
abstract void |
emitDirect(int taskId,
String streamId,
List<Object> tuple) |
abstract void |
flush()
Flush any buffered tuples (when batching is enabled).
|
abstract void |
reportError(Throwable error) |
public void emitDirect(int taskId, List<Object> tuple)
Emits a tuple to the specified task on the default output stream. This output stream must have been declared as a direct stream, and the specified task must use a direct grouping on this stream to receive the message.
public abstract void flush()
Flush any buffered tuples (when batching is enabled).
public abstract void reportError(Throwable error)
Copyright © 2019 The Apache Software Foundation. All rights reserved.