T - The type of the elements that can be emitted.@Internal public class TimestampedCollector<T> extends Object implements org.apache.flink.util.Collector<T>
Output for user functions that expect a Collector.
Before giving the TimestampedCollector to a user function you must set
the timestamp that should be attached to emitted elements. Most operators
would set the timestamp of the incoming
StreamRecord here.| Constructor and Description |
|---|
TimestampedCollector(Output<StreamRecord<T>> output)
Creates a new
TimestampedCollector that wraps the given Output. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
collect(T record) |
void |
setAbsoluteTimestamp(long timestamp) |
void |
setTimestamp(StreamRecord<?> timestampBase) |
public TimestampedCollector(Output<StreamRecord<T>> output)
TimestampedCollector that wraps the given Output.public void collect(T record)
collect in interface org.apache.flink.util.Collector<T>public void setTimestamp(StreamRecord<?> timestampBase)
public void setAbsoluteTimestamp(long timestamp)
public void close()
close in interface org.apache.flink.util.Collector<T>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.