public final class SparkDeserializerFactory
extends java.lang.Object
getFeatureDeserializer(com.linkedin.feathr.common.tensor.TensorType).
NOTE that this class directly operates with scala.collection.Seq values coming from Spark DataFrame.
An alternative would be converting those to java.util.List, but given the performance requirements of this class, that was not chosen.| Modifier and Type | Method and Description |
|---|---|
static FeatureDeserializer |
getFeatureDeserializer(TensorType tensorType)
Creates a converter from Spark feature value to a TensorData.
|
public static FeatureDeserializer getFeatureDeserializer(TensorType tensorType)
tensorType - the type of the converted values