Package com.linkedin.feathr.common.types
Enum Class FeatureType.BasicType
- All Implemented Interfaces:
Serializable,Comparable<FeatureType.BasicType>,Constable
- Enclosing class:
- FeatureType
Enum for the top-level feature types supported by Feathr.
The enum values conform to specific subtypes of FeatureType and FeatureValue.
In the current API, if you see a FeatureType with .getBasicType() == NUMERIC, then you may assume the FeatureType
is a NumericFeatureType and any FeatureValue associated with it is a NumericFeatureValue. Etc.
This guarantee is mainly for convenience and clarity in the code within Feathr, and IT IS POSSIBLE THAT THIS
GUARANTEE MIGHT NOT HOLD TRUE in subsequent versions, so external code outside of Feathr should not rely on it.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureType.BasicTypeReturns the enum constant of this class with the specified name.static FeatureType.BasicType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
NUMERIC
-
CATEGORICAL
-
CATEGORICAL_SET
-
TERM_VECTOR
-
DENSE_VECTOR
-
TENSOR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-