public static enum Types.FileFormat extends Enum<Types.FileFormat>
Enum Constant and Description |
---|
BINARY |
CSV |
FEDERATED |
HDF5 |
JSONL |
LIBSVM |
MM |
PROTO |
TEXT |
Modifier and Type | Method and Description |
---|---|
static Types.FileFormat |
defaultFormat() |
static String |
defaultFormatString() |
boolean |
isDelimitedFormat() |
static boolean |
isDelimitedFormat(String fmt) |
boolean |
isIJV() |
boolean |
isTextFormat() |
static boolean |
isTextFormat(String fmt) |
static Types.FileFormat |
safeValueOf(String fmt) |
String |
toString() |
static Types.FileFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Types.FileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Types.FileFormat TEXT
public static final Types.FileFormat MM
public static final Types.FileFormat CSV
public static final Types.FileFormat LIBSVM
public static final Types.FileFormat JSONL
public static final Types.FileFormat BINARY
public static final Types.FileFormat FEDERATED
public static final Types.FileFormat PROTO
public static final Types.FileFormat HDF5
public static Types.FileFormat[] values()
for (Types.FileFormat c : Types.FileFormat.values()) System.out.println(c);
public static Types.FileFormat 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 boolean isIJV()
public boolean isTextFormat()
public static boolean isTextFormat(String fmt)
public boolean isDelimitedFormat()
public static boolean isDelimitedFormat(String fmt)
public String toString()
toString
in class Enum<Types.FileFormat>
public static Types.FileFormat defaultFormat()
public static String defaultFormatString()
public static Types.FileFormat safeValueOf(String fmt)
Copyright © 2022 The Apache Software Foundation. All rights reserved.