Class FieldSerializer
- java.lang.Object
-
- org.apache.flink.api.java.typeutils.runtime.FieldSerializer
-
@Internal public class FieldSerializer extends Object
This class is for the serialization of java.lang.reflect.Field, which doesn't implement Serializable, therefore readObject/writeObject need to be implemented in classes where there is a field of type java.lang.reflect.Field. The two static methods in this class are to be called from these readObject/writeObject methods.
-
-
Constructor Summary
Constructors Constructor Description FieldSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FielddeserializeField(ObjectInputStream in)static voidserializeField(Field field, ObjectOutputStream out)
-
-
-
Method Detail
-
serializeField
public static void serializeField(Field field, ObjectOutputStream out) throws IOException
- Throws:
IOException
-
deserializeField
public static Field deserializeField(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
-