Package com.linkedin.feathr.common.value
Class CategoricalFeatureValue
java.lang.Object
com.linkedin.feathr.common.value.CategoricalFeatureValue
- All Implemented Interfaces:
FeatureValue
A specific FeatureValue class for CATEGORICAL features. Underlying representation is a String.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CategoricalFeatureValuefromString(String stringValue) inthashCode()toString()
-
Method Details
-
fromString
- Parameters:
stringValue- categorical string value- Returns:
- a CategoricalFeatureValue containing the provided string
-
getStringValue
- Returns:
- the contained categorical-string value
-
getFeatureType
- Specified by:
getFeatureTypein interfaceFeatureValue- Returns:
- the
FeatureTypeof this feature
-
equals
-
hashCode
public int hashCode() -
toString
-