Package com.linkedin.feathr.common.value
Interface FeatureFormatMapper<T>
- Type Parameters:
T- type of the external representation
- All Known Implementing Classes:
AbstractFeatureFormatMapper,NTVFeatureFormatMapper,QuinceFeatureFormatMapper
public interface FeatureFormatMapper<T>
A mapper, or translator, that can convert between the standard FeatureValue representation and some other
external representation.
-
Method Summary
Modifier and TypeMethodDescriptionfromFeatureValue(FeatureValue featureValue) Converts a feature value into the external representationtoFeatureValue(FeatureType featureType, T externalValue) Converts a datum in the external representation into the FeatureValue format.
-
Method Details
-
fromFeatureValue
Converts a feature value into the external representation- Parameters:
featureValue- the FeatureValue- Returns:
- the datum in the external representation
-
toFeatureValue
Converts a datum in the external representation into the FeatureValue format. The FeatureType of the feature must be known.- Parameters:
featureType- type of this featureexternalValue- datum in the external representation- Returns:
- datum represented as a FeatureValue
-