org.apache.sysml.api.mlcontext

Enum ScriptType

    • Enum Constant Detail

      • DML

        public static final ScriptType DML
        R-like syntax.
      • PYDML

        public static final ScriptType PYDML
        Python-like syntax.
    • Method Detail

      • values

        public static ScriptType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ScriptType c : ScriptType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScriptType 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
      • lowerCase

        public String lowerCase()
        Obtain script type as a lowercase string ("dml" or "pydml").
        Returns:
        lowercase string representing the script type
      • isDML

        public boolean isDML()
        Is the script type DML?
        Returns:
        true if the script type is DML, false otherwise
      • isPYDML

        public boolean isPYDML()
        Is the script type PYDML?
        Returns:
        true if the script type is PYDML, false otherwise

Copyright © 2017 The Apache Software Foundation. All rights reserved.