Class ResultWriterAdapter<T extends FetchResult>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void open​(org.apache.hadoop.conf.Configuration conf)
      Opens the given result writer with a configuration.
      void write​(T result)
      Writes a single item to the output.
      • Methods inherited from class java.lang.Object

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

      • ResultWriterAdapter

        public ResultWriterAdapter()
    • Method Detail

      • open

        public void open​(org.apache.hadoop.conf.Configuration conf)
                  throws java.io.IOException
        Description copied from interface: ResultWriter
        Opens the given result writer with a configuration.
        Specified by:
        open in interface ResultWriter<T extends FetchResult>
        Throws:
        java.io.IOException
      • write

        public void write​(T result)
                   throws java.io.IOException
        Description copied from interface: ResultWriter
        Writes a single item to the output.
        Specified by:
        write in interface ResultWriter<T extends FetchResult>
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception