Package org.hpccsystems.dfs.client
Enum DataPartition.FileType
- java.lang.Object
-
- java.lang.Enum<DataPartition.FileType>
-
- org.hpccsystems.dfs.client.DataPartition.FileType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataPartition.FileType>
- Enclosing class:
- DataPartition
public static enum DataPartition.FileType extends Enum<DataPartition.FileType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CSV
FLAT
INDEX
INDEX_LOCAL
INDEX_PARTITIONED
JSON
XML
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataPartition.FileType
fromWrappedFileType(DFUFileTypeWrapper wrappedType)
String
toString()
boolean
typeCanBeDeduced()
Type can be deduced.static DataPartition.FileType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataPartition.FileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLAT
public static final DataPartition.FileType FLAT
-
INDEX
public static final DataPartition.FileType INDEX
-
INDEX_LOCAL
public static final DataPartition.FileType INDEX_LOCAL
-
INDEX_PARTITIONED
public static final DataPartition.FileType INDEX_PARTITIONED
-
JSON
public static final DataPartition.FileType JSON
-
CSV
public static final DataPartition.FileType CSV
-
XML
public static final DataPartition.FileType XML
-
-
Method Detail
-
values
public static DataPartition.FileType[] 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 (DataPartition.FileType c : DataPartition.FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataPartition.FileType 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<DataPartition.FileType>
-
typeCanBeDeduced
public boolean typeCanBeDeduced()
Type can be deduced.- Returns:
- true, if successful
-
fromWrappedFileType
public static DataPartition.FileType fromWrappedFileType(DFUFileTypeWrapper wrappedType) throws Exception
- Throws:
Exception
-
-