Class WayangValue<T>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.flink.core.io.IOReadableWritable, org.apache.flink.types.Value

    public class WayangValue<T>
    extends java.lang.Object
    implements org.apache.flink.types.Value
    Implementation of Value of flink for use in Wayang
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] convertToByte()  
      T convertToObject​(byte[] array)  
      T get()  
      void read​(org.apache.flink.core.memory.DataInputView dataInputView)  
      java.lang.String toString()  
      void write​(org.apache.flink.core.memory.DataOutputView dataOutputView)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WayangValue

        public WayangValue()
      • WayangValue

        public WayangValue​(T element)
    • Method Detail

      • write

        public void write​(org.apache.flink.core.memory.DataOutputView dataOutputView)
                   throws java.io.IOException
        Specified by:
        write in interface org.apache.flink.core.io.IOReadableWritable
        Throws:
        java.io.IOException
      • read

        public void read​(org.apache.flink.core.memory.DataInputView dataInputView)
                  throws java.io.IOException
        Specified by:
        read in interface org.apache.flink.core.io.IOReadableWritable
        Throws:
        java.io.IOException
      • convertToByte

        public byte[] convertToByte()
      • convertToObject

        public T convertToObject​(byte[] array)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • get

        public T get()