@Override public RecordWriter<NodePath, MarkLogicNode> getRecordWriter( TaskAttemptContext context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); TextArrayWritable hosts = getHosts(conf); String host = InternalUtilities.getHost(hosts); return new NodeWriter(conf, host); }
@Override public RecordWriter<DocumentURI, MarkLogicNode> getRecordWriter( TaskAttemptContext context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); TextArrayWritable hosts = getHosts(conf); String host = InternalUtilities.getHost(hosts); return new PropertyWriter(conf, host); }
@Override public RecordWriter<KEYOUT, VALUEOUT> getRecordWriter( TaskAttemptContext context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); TextArrayWritable hosts = getHosts(conf); String host = InternalUtilities.getHost(hosts); return new KeyValueWriter<KEYOUT, VALUEOUT>(conf, host); }