public enum PackagedProgramUtils extends Enum<PackagedProgramUtils>
PackagedProgram
related operations.Modifier and Type | Method and Description |
---|---|
static JobGraph |
createJobGraph(PackagedProgram packagedProgram,
Configuration configuration,
int defaultParallelism,
boolean suppressOutput)
|
static JobGraph |
createJobGraph(PackagedProgram packagedProgram,
Configuration configuration,
int defaultParallelism,
JobID jobID,
boolean suppressOutput)
|
static Pipeline |
getPipelineFromProgram(PackagedProgram program,
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 JobGraph createJobGraph(PackagedProgram packagedProgram, Configuration configuration, int defaultParallelism, @Nullable 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 JobGraph createJobGraph(PackagedProgram packagedProgram, 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 Pipeline getPipelineFromProgram(PackagedProgram program, Configuration configuration, int parallelism, boolean suppressOutput) throws CompilerException, ProgramInvocationException
public static boolean isPython(String[] programArguments)
public static URL getPythonJar()
public static String getPythonDriverClassName()
public static URI resolveURI(String path) throws URISyntaxException
URISyntaxException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.