public enum SparkErrorCode extends Enum<SparkErrorCode> implements ErrorCodeSupplier
| Enum Constant and Description |
|---|
EXCEEDED_SPARK_DRIVER_MAX_RESULT_SIZE |
GENERIC_SPARK_ERROR |
SPARK_EXECUTOR_LOST |
SPARK_EXECUTOR_OOM |
STORAGE_ERROR |
UNSUPPORTED_STORAGE_TYPE |
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_CODE_MASK |
| Modifier and Type | Method and Description |
|---|---|
ErrorCode |
toErrorCode() |
static SparkErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SparkErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SparkErrorCode GENERIC_SPARK_ERROR
public static final SparkErrorCode SPARK_EXECUTOR_OOM
public static final SparkErrorCode SPARK_EXECUTOR_LOST
public static final SparkErrorCode EXCEEDED_SPARK_DRIVER_MAX_RESULT_SIZE
public static final SparkErrorCode UNSUPPORTED_STORAGE_TYPE
public static final SparkErrorCode STORAGE_ERROR
public static final int ERROR_CODE_MASK
public static SparkErrorCode[] values()
for (SparkErrorCode c : SparkErrorCode.values()) System.out.println(c);
public static SparkErrorCode 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 ErrorCode toErrorCode()
toErrorCode in interface ErrorCodeSupplierCopyright © 2012–2021. All rights reserved.