TKey - TValue - T - public abstract class AbstractWholeFileNodeTupleWriter<TKey,TValue,T extends AbstractNodeTupleWritable<TValue>>
extends org.apache.hadoop.mapreduce.RecordWriter<TKey,T>
It is important to note that the writer does not actually write any output
until the close(TaskAttemptContext) method is called as it must
write the entire output in one go otherwise the output would be invalid. Also
writing in one go increases the chances that the writer will be able to
effectively use the syntax compressions of the RDF serialization being used.
The implementation only writes the value portion of the key value pair since it is the value portion that is used to convey the node tuples
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(TKey key,
T value) |
public final void write(TKey key, T value)
write in class org.apache.hadoop.mapreduce.RecordWriter<TKey,T extends AbstractNodeTupleWritable<TValue>>public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
close in class org.apache.hadoop.mapreduce.RecordWriter<TKey,T extends AbstractNodeTupleWritable<TValue>>IOExceptionLicenced under the Apache License, Version 2.0