Package com.linkedin.feathr.common.value
Class CategoricalSetFeatureValue
java.lang.Object
com.linkedin.feathr.common.value.CategoricalSetFeatureValue
- All Implemented Interfaces:
FeatureValue
A specific FeatureValue class for CATEGORICAL_SET features. Underlying representation is a Set of String.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CategoricalSetFeatureValuefromStrings(Collection<String> strings) static CategoricalSetFeatureValuefromStringSet(Set<String> stringSet) inthashCode()toString()
-
Method Details
-
fromStrings
- Parameters:
strings- a collection of strings, in which duplicates would be ignored- Returns:
- a CategoricalSetFeatureValue for the provided strings
-
fromStringSet
- Parameters:
stringSet- a Set of strings- Returns:
- a CategoricalSetFeatureValue for the provided string set
-
getStringSet
- Returns:
- the categorical-set value, as a Set of strings
-
getFeatureType
- Specified by:
getFeatureTypein interfaceFeatureValue- Returns:
- the
FeatureTypeof this feature
-
equals
-
hashCode
public int hashCode() -
toString
-