public abstract class MapSideJoinRunner<IN1,IN2,SINGLE_IN,MULTI_IN,OUT> extends RichFlatMapFunction<MULTI_IN,OUT> implements ResultTypeQueryable<OUT>, Compiler<FlatJoinFunction<IN1,IN2,OUT>>
Constructor and Description |
---|
MapSideJoinRunner(String name,
String code,
TypeInformation<OUT> returnType,
String broadcastSetName) |
Modifier and Type | Method and Description |
---|---|
protected scala.Option<SINGLE_IN> |
broadcastSet() |
protected FlatJoinFunction<IN1,IN2,OUT> |
function() |
TypeInformation<OUT> |
getProducedType()
Gets the data type (as a
TypeInformation ) produced by this function or input format. |
org.slf4j.Logger |
LOG() |
void |
open(Configuration parameters)
Initialization method for the function.
|
flatMap
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
public MapSideJoinRunner(String name, String code, TypeInformation<OUT> returnType, String broadcastSetName)
public org.slf4j.Logger LOG()
protected FlatJoinFunction<IN1,IN2,OUT> function()
protected scala.Option<SINGLE_IN> broadcastSet()
public void open(Configuration parameters)
RichFunction
The configuration object passed to the function can be used for configuration and initialization. The configuration contains all parameters that were configured on the function in the program composition.
public class MyMapper extends FilterFunction<String> {
private String searchString;
public void open(Configuration parameters) {
this.searchString = parameters.getString("foo");
}
public boolean filter(String value) {
return value.equals(searchString);
}
}
By default, this method does nothing.
open
in interface RichFunction
open
in class AbstractRichFunction
parameters
- The configuration containing the parameters attached to the contract.Configuration
public TypeInformation<OUT> getProducedType()
ResultTypeQueryable
TypeInformation
) produced by this function or input format.getProducedType
in interface ResultTypeQueryable<OUT>
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.