Enum ProgramOptionsUtils

java.lang.Object
java.lang.Enum<ProgramOptionsUtils>
org.apache.flink.client.cli.ProgramOptionsUtils
All Implemented Interfaces:
Serializable, Comparable<ProgramOptionsUtils>

public enum ProgramOptionsUtils extends Enum<ProgramOptionsUtils>
Utility class for ProgramOptions.
  • Method Details

    • values

      public static ProgramOptionsUtils[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ProgramOptionsUtils valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • isPythonEntryPoint

      public static boolean isPythonEntryPoint(org.apache.commons.cli.CommandLine line)
      Returns:
      True if the commandline contains "-py" or "-pym" options or comes from PyFlink shell, false otherwise.
    • containsPythonDependencyOptions

      public static boolean containsPythonDependencyOptions(org.apache.commons.cli.CommandLine line)
      Returns:
      True if the commandline contains "-pyfs", "-pyarch", "-pyreq", "-pyexec", "-pypath" options, false otherwise.
    • createPythonProgramOptions

      public static ProgramOptions createPythonProgramOptions(org.apache.commons.cli.CommandLine line) throws CliArgsException
      Throws:
      CliArgsException
    • configurePythonExecution

      public static void configurePythonExecution(org.apache.flink.configuration.Configuration configuration, PackagedProgram packagedProgram) throws Exception
      Throws:
      Exception