public class OutputCollector<T> extends Object implements org.apache.flink.util.Collector<T>
RecordWriters. The
OutputCollector tracks to which writers a deep-copy must be given and which not.| 构造器和说明 |
|---|
OutputCollector(List<RecordWriter<SerializationDelegate<T>>> writers,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Initializes the output collector with a set of writers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
collect(T record)
Collects a record and emits it to all writers.
|
List<RecordWriter<SerializationDelegate<T>>> |
getWriters()
List of writers that are associated with this output collector
|
public OutputCollector(List<RecordWriter<SerializationDelegate<T>>> writers, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
List.writers - List of all writers.public void collect(T record)
collect 在接口中 org.apache.flink.util.Collector<T>public void close()
close 在接口中 org.apache.flink.util.Collector<T>public List<RecordWriter<SerializationDelegate<T>>> getWriters()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.