Class Container<T>

  • Type Parameters:
    T - the Java type of the object held by this container
    All Implemented Interfaces:
    org.apache.hadoop.io.Writable

    public class Container<T>
    extends java.lang.Object
    implements org.apache.hadoop.io.Writable
    A simple container of objects that you can get and set.
    • Constructor Summary

      Constructors 
      Constructor Description
      Container()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      void readFields​(java.io.DataInput dataInput)  
      void set​(T newValue)  
      void write​(java.io.DataOutput dataOutput)  
      • Methods inherited from class java.lang.Object

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

      • Container

        public Container()
    • Method Detail

      • get

        public T get()
      • set

        public void set​(T newValue)
      • write

        public void write​(java.io.DataOutput dataOutput)
        Specified by:
        write in interface org.apache.hadoop.io.Writable
      • readFields

        public void readFields​(java.io.DataInput dataInput)
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable