Package feast.common.models
Class Store
- java.lang.Object
-
- feast.common.models.Store
-
public class Store extends Object
-
-
Constructor Summary
Constructors Constructor Description Store()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StoreProto.Store.SubscriptionconvertStringToSubscription(String subscription)Accepts a exclude parameter to determine whether to return subscriptions that are excluded.static booleanisSubscribedToFeatureSet(List<StoreProto.Store.Subscription> subscriptions, String projectName, String featureSetName)The current use of this function is to determine whether a FeatureRow is subscribed to a Featureset.static List<StoreProto.Store.Subscription>parseSubFromStr(String subscriptions)Accepts a comma-delimited string and converts it to a list of Subscription class objects.static List<StoreProto.Store.Subscription>parseSubFromStrWithoutExclusions(String subscriptions)Accepts a comma-delimited string and converts it to a list of Subscription class objects, with exclusions filtered out.static StringparseSubscriptionFrom(StoreProto.Store.Subscription subscription)Accepts a Subscription class object and returns it in string format
-
-
-
Method Detail
-
parseSubFromStr
public static List<StoreProto.Store.Subscription> parseSubFromStr(String subscriptions)
Accepts a comma-delimited string and converts it to a list of Subscription class objects.- Parameters:
subscriptions- String formatted Subscriptions, comma delimited.- Returns:
- List of Subscription class objects
-
parseSubFromStrWithoutExclusions
public static List<StoreProto.Store.Subscription> parseSubFromStrWithoutExclusions(String subscriptions)
Accepts a comma-delimited string and converts it to a list of Subscription class objects, with exclusions filtered out.- Parameters:
subscriptions- String formatted Subscriptions, comma delimited.- Returns:
- List of Subscription class objects
-
parseSubscriptionFrom
public static String parseSubscriptionFrom(StoreProto.Store.Subscription subscription)
Accepts a Subscription class object and returns it in string format- Parameters:
subscription- Subscription class to be converted to string format- Returns:
- String formatted Subscription class
-
convertStringToSubscription
public static StoreProto.Store.Subscription convertStringToSubscription(String subscription)
Accepts a exclude parameter to determine whether to return subscriptions that are excluded.- Parameters:
subscription- String formatted Subscription to be converted to Subscription class- Returns:
- Subscription class with its respective attributes
-
isSubscribedToFeatureSet
public static boolean isSubscribedToFeatureSet(List<StoreProto.Store.Subscription> subscriptions, String projectName, String featureSetName)
The current use of this function is to determine whether a FeatureRow is subscribed to a Featureset.- Parameters:
subscriptions- List of Subscriptions available in StoreprojectName- Project name used for matching Subscription's ProjectfeatureSetName- Featureset name used for matching Subscription's Featureset- Returns:
- boolean flag to signify if FeatureRow is subscribed to Featureset
-
-