Package com.yahoo.vespa.hadoop.mapreduce
Class VespaRecordWriter
- java.lang.Object
-
- org.apache.hadoop.mapreduce.RecordWriter
-
- com.yahoo.vespa.hadoop.mapreduce.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)
-
-
-
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 classorg.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 classorg.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()
-
-