Package org.apache.wayang.flink.platform
Class FlinkPlatform
- java.lang.Object
-
- org.apache.wayang.core.platform.Platform
-
- org.apache.wayang.flink.platform.FlinkPlatform
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINITIALIZATION_MS_CONFIG_KEY-
Fields inherited from class org.apache.wayang.core.platform.Platform
jsonSerializer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureDefaults(Configuration configuration)Configure default settings for this instance, e.g., to be able to createLoadProfileToTimeConverters.LoadProfileToTimeConvertercreateLoadProfileToTimeConverter(Configuration configuration)TimeToCostConvertercreateTimeToCostConverter(Configuration configuration)Creates aTimeToCostConverterfor this instance.Executor.FactorygetExecutorFactory()FlinkContextReferencegetFlinkContext(Job job)Configures the single maintainedExecutionEnvironmentaccording to thejoband returns it.static FlinkPlatformgetInstance()-
Methods inherited from class org.apache.wayang.core.platform.Platform
createExecutor, getConfigurationName, getInitializeMillis, getName, isSinglePlatformExecutionPossible, load, toString, warmUp
-
-
-
-
Field Detail
-
INITIALIZATION_MS_CONFIG_KEY
public static final java.lang.String INITIALIZATION_MS_CONFIG_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static FlinkPlatform getInstance()
-
getFlinkContext
public FlinkContextReference getFlinkContext(Job job)
Configures the single maintainedExecutionEnvironmentaccording to thejoband returns it.- Returns:
- a
FlinkContextReferencewrapping theExecutionEnvironment
-
configureDefaults
public void configureDefaults(Configuration configuration)
Description copied from class:PlatformConfigure default settings for this instance, e.g., to be able to createLoadProfileToTimeConverters.- Specified by:
configureDefaultsin classPlatform- Parameters:
configuration- that should be configured
-
getExecutorFactory
public Executor.Factory getExecutorFactory()
- Specified by:
getExecutorFactoryin classPlatform
-
createLoadProfileToTimeConverter
public LoadProfileToTimeConverter createLoadProfileToTimeConverter(Configuration configuration)
- Specified by:
createLoadProfileToTimeConverterin classPlatform- Returns:
- a default
LoadProfileToTimeConverter
-
createTimeToCostConverter
public TimeToCostConverter createTimeToCostConverter(Configuration configuration)
Description copied from class:PlatformCreates aTimeToCostConverterfor this instance.- Specified by:
createTimeToCostConverterin classPlatform- Parameters:
configuration- configures theTimeToCostConverter- Returns:
- the
TimeToCostConverter
-
-