Interface IVersionedAsymmetricSerializer<In,​Out>

    • Method Detail

      • serialize

        void serialize​(In t,
                       DataOutputPlus out,
                       int version)
                throws java.io.IOException
        Serialize the specified type into the specified DataOutputStream instance.
        Parameters:
        t - type that needs to be serialized
        out - DataOutput into which serialization needs to happen.
        version - protocol version
        Throws:
        java.io.IOException - if serialization fails
      • deserialize

        Out deserialize​(DataInputPlus in,
                        int version)
                 throws java.io.IOException
        Deserialize into the specified DataInputStream instance.
        Parameters:
        in - DataInput from which deserialization needs to happen.
        version - protocol version
        Returns:
        the type that was deserialized
        Throws:
        java.io.IOException - if deserialization fails
      • serializedSize

        long serializedSize​(In t,
                            int version)
        Calculate serialized size of object without actually serializing.
        Parameters:
        t - object to calculate serialized size
        version - protocol version
        Returns:
        serialized size of object t