T - the type of elements in the side-output stream.@PublicEvolving public class OutputTag<T> extends Object implements Serializable
OutputTag is a typed and named tag to use for tagging side outputs
of an operator.
An OutputTag must always be an anonymous inner class so that Flink can derive
a TypeInformation for the generic type parameter.
Example:
OutputTag<Tuple2<String, Long>> info = new OutputTag<Tuple2<String, Long>>("late-data"){});
| Constructor and Description |
|---|
OutputTag(String id)
Creates a new named
OutputTag with the given id. |
OutputTag(String id,
TypeInformation<T> typeInfo)
Creates a new named
OutputTag with the given id and output TypeInformation. |
public OutputTag(String id)
OutputTag with the given id.id - The id of the created OutputTag.public OutputTag(String id, TypeInformation<T> typeInfo)
OutputTag with the given id and output TypeInformation.id - The id of the created OutputTag.typeInfo - The TypeInformation for the side output.public String getId()
public TypeInformation<T> getTypeInfo()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.