Package org.datavec.api.transform
Enum ColumnType
- java.lang.Object
-
- java.lang.Enum<ColumnType>
-
- org.datavec.api.transform.ColumnType
-
- All Implemented Interfaces:
Serializable
,Comparable<ColumnType>
public enum ColumnType extends Enum<ColumnType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WritableType
getWritableType()
ColumnMetaData
newColumnMetaData(String columnName)
static ColumnType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColumnType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
String
public static final ColumnType String
-
Integer
public static final ColumnType Integer
-
Long
public static final ColumnType Long
-
Double
public static final ColumnType Double
-
Float
public static final ColumnType Float
-
Categorical
public static final ColumnType Categorical
-
Time
public static final ColumnType Time
-
Bytes
public static final ColumnType Bytes
-
Boolean
public static final ColumnType Boolean
-
NDArray
public static final ColumnType NDArray
-
-
Method Detail
-
values
public static ColumnType[] 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 (ColumnType c : ColumnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnType 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
-
newColumnMetaData
public ColumnMetaData newColumnMetaData(String columnName)
-
getWritableType
public WritableType getWritableType()
- Returns:
- The type of writable for this column
-
-