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() |
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
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
public void close() throws IOException
close
in interface RichFunction
close
in class AbstractRichFunction
IOException
public TypeInformation<OUT> getProducedType()
getProducedType
in interface ResultTypeQueryable<OUT>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.