Package cern.nxcals.api.custom.config
Enum SparkSessionFlavor
- java.lang.Object
-
- java.lang.Enum<SparkSessionFlavor>
-
- cern.nxcals.api.custom.config.SparkSessionFlavor
-
- All Implemented Interfaces:
cern.nxcals.api.utils.YarnProperties
,java.io.Serializable
,java.lang.Comparable<SparkSessionFlavor>
public enum SparkSessionFlavor extends java.lang.Enum<SparkSessionFlavor> implements cern.nxcals.api.utils.YarnProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getProperties()
static SparkSessionFlavor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SparkSessionFlavor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMALL
public static final SparkSessionFlavor SMALL
-
MEDIUM
public static final SparkSessionFlavor MEDIUM
-
LARGE
public static final SparkSessionFlavor LARGE
-
-
Method Detail
-
values
public static SparkSessionFlavor[] 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 (SparkSessionFlavor c : SparkSessionFlavor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SparkSessionFlavor valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Specified by:
getProperties
in interfacecern.nxcals.api.utils.YarnProperties
-
-