Class DeweyNumber.DeweyNumberSerializer

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    DeweyNumber

    public static class DeweyNumber.DeweyNumberSerializer
    extends org.apache.flink.api.common.typeutils.base.TypeSerializerSingleton<DeweyNumber>
    A TypeSerializer for the DeweyNumber which serves as a version number.
    See Also:
    Serialized Form
    • Method Detail

      • isImmutableType

        public boolean isImmutableType()
        Specified by:
        isImmutableType in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>
      • createInstance

        public DeweyNumber createInstance()
        Specified by:
        createInstance in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>
      • getLength

        public int getLength()
        Specified by:
        getLength in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>
      • serialize

        public void serialize​(DeweyNumber record,
                              org.apache.flink.core.memory.DataOutputView target)
                       throws IOException
        Specified by:
        serialize in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>
        Throws:
        IOException
      • deserialize

        public DeweyNumber deserialize​(org.apache.flink.core.memory.DataInputView source)
                                throws IOException
        Specified by:
        deserialize in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>
        Throws:
        IOException
      • copy

        public void copy​(org.apache.flink.core.memory.DataInputView source,
                         org.apache.flink.core.memory.DataOutputView target)
                  throws IOException
        Specified by:
        copy in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>
        Throws:
        IOException
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class org.apache.flink.api.common.typeutils.base.TypeSerializerSingleton<DeweyNumber>
      • snapshotConfiguration

        public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<DeweyNumber> snapshotConfiguration()
        Specified by:
        snapshotConfiguration in class org.apache.flink.api.common.typeutils.TypeSerializer<DeweyNumber>