Class OperationSerializer
- java.lang.Object
-
- org.apache.flink.cdc.connectors.elasticsearch.v2.OperationSerializer
-
-
Constructor Summary
Constructors Constructor Description OperationSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Operationdeserialize(long requestSize, DataInputStream in)Deserializes anOperationfrom the providedDataInputStream.voidserialize(Operation request, DataOutputStream out)Serializes the givenOperationto the providedDataOutputStream.intsize(Operation operation)Calculates the serialized size of the givenOperation.
-
-
-
Method Detail
-
serialize
public void serialize(Operation request, DataOutputStream out)
Serializes the givenOperationto the providedDataOutputStream.- Parameters:
request- the Operation to serializeout- the DataOutputStream to which the Operation will be serialized
-
deserialize
public Operation deserialize(long requestSize, DataInputStream in)
Deserializes anOperationfrom the providedDataInputStream.- Parameters:
requestSize- the size of the request in bytesin- the DataInputStream from which the Operation will be deserialized- Returns:
- the deserialized Operation, or null if deserialization fails
-
-