Package org.apache.flink.api.common.io
Enum FileOutputFormat.OutputDirectoryMode
- java.lang.Object
-
- java.lang.Enum<FileOutputFormat.OutputDirectoryMode>
-
- org.apache.flink.api.common.io.FileOutputFormat.OutputDirectoryMode
-
- All Implemented Interfaces:
Serializable,Comparable<FileOutputFormat.OutputDirectoryMode>
- Enclosing class:
- FileOutputFormat<IT>
public static enum FileOutputFormat.OutputDirectoryMode extends Enum<FileOutputFormat.OutputDirectoryMode>
Behavior for creating output directories.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileOutputFormat.OutputDirectoryModevalueOf(String name)Returns the enum constant of this type with the specified name.static FileOutputFormat.OutputDirectoryMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final FileOutputFormat.OutputDirectoryMode ALWAYS
A directory is always created, regardless of number of write tasks.
-
PARONLY
public static final FileOutputFormat.OutputDirectoryMode PARONLY
A directory is only created for parallel output tasks, i.e., number of output tasks > 1. If number of output tasks = 1, the output is written to a single file.
-
-
Method Detail
-
values
public static FileOutputFormat.OutputDirectoryMode[] 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 (FileOutputFormat.OutputDirectoryMode c : FileOutputFormat.OutputDirectoryMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileOutputFormat.OutputDirectoryMode 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 nameNullPointerException- if the argument is null
-
-