public enum FileFormat extends java.lang.Enum<FileFormat>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addExtension(java.lang.String filename)
Returns filename with this format's extension added, if necessary.
|
static FileFormat |
fromFileName(java.lang.CharSequence filename) |
boolean |
isSplittable() |
static FileFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFormat ORC
public static final FileFormat PARQUET
public static final FileFormat AVRO
public static final FileFormat METADATA
public static FileFormat[] values()
for (FileFormat c : FileFormat.values()) System.out.println(c);
public static FileFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isSplittable()
public java.lang.String addExtension(java.lang.String filename)
filename
- a filename or pathpublic static FileFormat fromFileName(java.lang.CharSequence filename)