Class VespaRecordWriter


  • public class VespaRecordWriter
    extends org.apache.hadoop.mapreduce.RecordWriter
    VespaRecordWriter sends the output <key, value> to one or more Vespa endpoints.
    Author:
    lesters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)  
      protected com.yahoo.vespa.http.client.config.ConnectionParams.Builder configureConnectionParams()  
      protected com.yahoo.vespa.http.client.config.FeedParams.Builder configureFeedParams()  
      protected com.yahoo.vespa.http.client.config.SessionParams.Builder configureSessionParams()  
      void write​(java.lang.Object key, java.lang.Object data)  
      • Methods inherited from class java.lang.Object

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

      • write

        public void write​(java.lang.Object key,
                          java.lang.Object data)
                   throws java.io.IOException,
                          java.lang.InterruptedException
        Specified by:
        write in class org.apache.hadoop.mapreduce.RecordWriter
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • close

        public void close​(org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
                   throws java.io.IOException,
                          java.lang.InterruptedException
        Specified by:
        close in class org.apache.hadoop.mapreduce.RecordWriter
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • configureConnectionParams

        protected com.yahoo.vespa.http.client.config.ConnectionParams.Builder configureConnectionParams()
      • configureFeedParams

        protected com.yahoo.vespa.http.client.config.FeedParams.Builder configureFeedParams()
      • configureSessionParams

        protected com.yahoo.vespa.http.client.config.SessionParams.Builder configureSessionParams()