public class VespaRecordWriter
extends org.apache.hadoop.mapreduce.RecordWriter
Modifier and Type | Class and Description |
---|---|
(package private) static class |
VespaRecordWriter.ResultCallback |
Modifier and Type | Field and Description |
---|---|
(package private) com.yahoo.vespa.hadoop.mapreduce.util.VespaConfiguration |
configuration |
private com.yahoo.vespa.hadoop.mapreduce.util.VespaCounters |
counters |
private com.yahoo.vespa.http.client.FeedClient |
feedClient |
private boolean |
initialized |
private static Logger |
log |
private int |
progressInterval |
Constructor and Description |
---|
VespaRecordWriter(com.yahoo.vespa.hadoop.mapreduce.util.VespaConfiguration configuration,
com.yahoo.vespa.hadoop.mapreduce.util.VespaCounters counters) |
Modifier and Type | Method and 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() |
private String |
findDocId(String json) |
private String |
findDocIdFromXml(String xml) |
private void |
initialize() |
void |
write(Object key,
Object data) |
private static final Logger log
private boolean initialized
private com.yahoo.vespa.http.client.FeedClient feedClient
private final com.yahoo.vespa.hadoop.mapreduce.util.VespaCounters counters
private final int progressInterval
final com.yahoo.vespa.hadoop.mapreduce.util.VespaConfiguration configuration
VespaRecordWriter(com.yahoo.vespa.hadoop.mapreduce.util.VespaConfiguration configuration, com.yahoo.vespa.hadoop.mapreduce.util.VespaCounters counters)
public void write(Object key, Object data) throws IOException, InterruptedException
write
in class org.apache.hadoop.mapreduce.RecordWriter
IOException
InterruptedException
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
close
in class org.apache.hadoop.mapreduce.RecordWriter
IOException
InterruptedException
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()
private void initialize()
private String findDocId(String json) throws IOException
IOException
Copyright © 2018. All rights reserved.