public abstract class FeatureStoreHelpers
extends java.lang.Object
FeatureStore
or FeatureStoreCore
.Modifier and Type | Class and Description |
---|---|
static class |
FeatureStoreHelpers.UnmarshalException
Thrown by
unmarshalJson(VersionedDataKind, String) for a deserialization error. |
Constructor and Description |
---|
FeatureStoreHelpers() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
marshalJson(VersionedData item)
Marshals a feature store item into a JSON string.
|
static <T extends VersionedData> |
unmarshalJson(VersionedDataKind<T> kind,
java.lang.String data)
Unmarshals a feature store item from a JSON string.
|
public static <T extends VersionedData> T unmarshalJson(VersionedDataKind<T> kind, java.lang.String data)
T
- class of the object that will be returnedkind
- specifies the type of item being decodeddata
- the JSON stringFeatureStoreHelpers.UnmarshalException
- if the JSON string was invalidpublic static java.lang.String marshalJson(VersionedData item)
item
- the item to be marshaled