Package org.apache.spark.util
Interface SparkSerDeUtils
public interface SparkSerDeUtils
-
Method Summary
Modifier and TypeMethodDescription<T> T
deserialize
(byte[] bytes) Deserialize an object using Java serialization<T> T
deserialize
(byte[] bytes, ClassLoader loader) Deserialize an object using Java serialization and the given ClassLoader<T> byte[]
serialize
(T o) Serialize an object using Java serialization
-
Method Details
-
serialize
<T> byte[] serialize(T o) Serialize an object using Java serialization -
deserialize
<T> T deserialize(byte[] bytes) Deserialize an object using Java serialization -
deserialize
Deserialize an object using Java serialization and the given ClassLoader- Parameters:
bytes
- (undocumented)loader
- (undocumented)- Returns:
- (undocumented)
-