T
- The type of the elements that can be emitted.@Internal public class TimestampedSideOutputCollector<T> extends Object implements Collector<T>
Output
for user functions that expect a Collector
.
Before giving the TimestampedSideOutputCollector
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.
This version emits results into a SideOutput specified by given OutputTag
Constructor and Description |
---|
TimestampedSideOutputCollector(OutputTag<T> outputTag,
Output<?> output)
Creates a new
TimestampedSideOutputCollector that wraps the given Output and collects
results into sideoutput corresponding to OutputTag . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the collector.
|
void |
collect(T record)
Emits a record.
|
void |
eraseTimestamp() |
void |
setAbsoluteTimestamp(long timestamp) |
void |
setTimestamp(StreamRecord<?> timestampBase) |
public void setTimestamp(StreamRecord<?> timestampBase)
public void setAbsoluteTimestamp(long timestamp)
public void eraseTimestamp()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.