Package com.gojek.feast
Class RequestUtil
- java.lang.Object
-
- com.gojek.feast.RequestUtil
-
public class RequestUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description RequestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<ServingAPIProto.FeatureReferenceV2>
createFeatureRefs(List<String> featureRefStrings)
Create feature references protos from given string feature reference.static ServingAPIProto.FeatureReferenceV2
parseFeatureRef(String featureRefString)
Parse a feature reference proto builder from the given featureRefString
-
-
-
Method Detail
-
createFeatureRefs
public static List<ServingAPIProto.FeatureReferenceV2> createFeatureRefs(List<String> featureRefStrings)
Create feature references protos from given string feature reference.- Parameters:
featureRefStrings
- to create Feature Reference protos from- Returns:
- List of parsed
ServingAPIProto.FeatureReferenceV2
protos
-
parseFeatureRef
public static ServingAPIProto.FeatureReferenceV2 parseFeatureRef(String featureRefString)
Parse a feature reference proto builder from the given featureRefString- Parameters:
featureRefString
- string feature reference to parse from.- Returns:
- a parsed
ServingAPIProto.FeatureReferenceV2
-
-