public enum PackagedProgramUtils extends Enum<PackagedProgramUtils>
PackagedProgram related operations.| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.runtime.jobgraph.JobGraph |
createJobGraph(PackagedProgram packagedProgram,
org.apache.flink.configuration.Configuration configuration,
int defaultParallelism,
boolean suppressOutput)
|
static org.apache.flink.runtime.jobgraph.JobGraph |
createJobGraph(PackagedProgram packagedProgram,
org.apache.flink.configuration.Configuration configuration,
int defaultParallelism,
org.apache.flink.api.common.JobID jobID,
boolean suppressOutput)
|
static org.apache.flink.api.dag.Pipeline |
getPipelineFromProgram(PackagedProgram program,
org.apache.flink.configuration.Configuration configuration,
int parallelism,
boolean suppressOutput) |
static String |
getPythonDriverClassName() |
static URL |
getPythonJar() |
static Boolean |
isPython(String entryPointClassName) |
static boolean |
isPython(String[] programArguments) |
static URI |
resolveURI(String path) |
static PackagedProgramUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PackagedProgramUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static PackagedProgramUtils[] values()
for (PackagedProgramUtils c : PackagedProgramUtils.values()) System.out.println(c);
public static PackagedProgramUtils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static org.apache.flink.runtime.jobgraph.JobGraph createJobGraph(PackagedProgram packagedProgram, org.apache.flink.configuration.Configuration configuration, int defaultParallelism, @Nullable org.apache.flink.api.common.JobID jobID, boolean suppressOutput) throws ProgramInvocationException
packagedProgram - to extract the JobGraph fromconfiguration - to use for the optimizer and job graph generatordefaultParallelism - for the JobGraphjobID - the pre-generated job idProgramInvocationException - if the JobGraph generation failedpublic static org.apache.flink.runtime.jobgraph.JobGraph createJobGraph(PackagedProgram packagedProgram, org.apache.flink.configuration.Configuration configuration, int defaultParallelism, boolean suppressOutput) throws ProgramInvocationException
packagedProgram - to extract the JobGraph fromconfiguration - to use for the optimizer and job graph generatordefaultParallelism - for the JobGraphsuppressOutput - Whether to suppress stdout/stderr during interactive JobGraph creation.ProgramInvocationException - if the JobGraph generation failedpublic static org.apache.flink.api.dag.Pipeline getPipelineFromProgram(PackagedProgram program, org.apache.flink.configuration.Configuration configuration, int parallelism, boolean suppressOutput) throws org.apache.flink.optimizer.CompilerException, ProgramInvocationException
org.apache.flink.optimizer.CompilerExceptionProgramInvocationExceptionpublic static boolean isPython(String[] programArguments)
public static URL getPythonJar()
public static String getPythonDriverClassName()
public static URI resolveURI(String path) throws URISyntaxException
URISyntaxExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.