IN1
- IN2
- OUT
- public class PythonCoGroup<IN1,IN2,OUT> extends RichCoGroupFunction<IN1,IN2,OUT> implements ResultTypeQueryable<OUT>
Constructor and Description |
---|
PythonCoGroup(Configuration config,
int envID,
int setID,
TypeInformation<OUT> typeInformation) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this function.
|
void |
coGroup(Iterable<IN1> first,
Iterable<IN2> second,
Collector<OUT> out)
Calls the external python function.
|
TypeInformation<OUT> |
getProducedType()
Gets the data type (as a
TypeInformation ) produced by this function or input format. |
void |
open(Configuration config)
Opens this function.
|
getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
public PythonCoGroup(Configuration config, int envID, int setID, TypeInformation<OUT> typeInformation)
public void open(Configuration config) throws IOException
open
in interface RichFunction
open
in class AbstractRichFunction
config
- configurationIOException
Configuration
public final void coGroup(Iterable<IN1> first, Iterable<IN2> second, Collector<OUT> out) throws Exception
coGroup
in interface CoGroupFunction<IN1,IN2,OUT>
coGroup
in class RichCoGroupFunction<IN1,IN2,OUT>
first
- second
- out
- collectorIOException
Exception
- The function may throw Exceptions, which will cause the program to cancel,
and may trigger the recovery logic.public void close() throws IOException
close
in interface RichFunction
close
in class AbstractRichFunction
IOException
public TypeInformation<OUT> getProducedType()
ResultTypeQueryable
TypeInformation
) produced by this function or input format.getProducedType
in interface ResultTypeQueryable<OUT>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.