Class VespaOutputFormat


  • public class VespaOutputFormat
    extends org.apache.hadoop.mapreduce.OutputFormat
    An output specification for writing to Vespa instances in a Map-Reduce job. Mainly returns an instance of a LegacyVespaRecordWriter that does the actual feeding to Vespa.
    Author:
    lesters
    • Constructor Detail

      • VespaOutputFormat

        public VespaOutputFormat()
      • VespaOutputFormat

        public VespaOutputFormat​(Properties configOverride)
    • Method Detail

      • getRecordWriter

        public org.apache.hadoop.mapreduce.RecordWriter getRecordWriter​(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                 throws IOException
        Specified by:
        getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat
        Throws:
        IOException
      • getOutputCommitter

        public org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter​(org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
                                                                       throws IOException,
                                                                              InterruptedException
        Specified by:
        getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat
        Throws:
        IOException
        InterruptedException