Package com.linkedin.feathr.common
Class PegasusDefaultFeatureValueResolver
java.lang.Object
com.linkedin.feathr.common.PegasusDefaultFeatureValueResolver
This class extracts default
FeatureValue from pegasus models-
Method Summary
Modifier and TypeMethodDescriptionresolveDefaultValue(String featureName, com.linkedin.feathr.compute.FeatureVersion featureVersion) Resolve default value in the format ofFeatureValuefromFeatureVersion.
-
Method Details
-
getInstance
-
resolveDefaultValue
public Optional<FeatureValue> resolveDefaultValue(String featureName, com.linkedin.feathr.compute.FeatureVersion featureVersion) Resolve default value in the format ofFeatureValuefromFeatureVersion. The resolver does not cache the intermediate and final result.- Parameters:
featureName- the feature namefeatureVersion- the PegasusFeatureVersionrecord- Returns:
- Optional of
FeatureValue, empty if there is resolving exceptions, or if the input does not contain default value information
-