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 . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId() |
TypeInformation<T> |
getTypeInfo() |
int |
hashCode() |
static boolean |
isResponsibleFor(OutputTag<?> owner,
OutputTag<?> other) |
String |
toString() |
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.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.