TKey - TValue - T - public abstract class AbstractBatchedNodeTupleWriter<TKey,TValue,T extends AbstractNodeTupleWritable<TValue>>
extends org.apache.hadoop.mapreduce.RecordWriter<TKey,T>
It is important to note that the writer will write output periodically once
sufficient tuples have been gathered. If there is an incomplete batch when
the close(TaskAttemptContext) method is called then the final batch
will be written then. Writing in batches 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) throws IOException
write in class org.apache.hadoop.mapreduce.RecordWriter<TKey,T extends AbstractNodeTupleWritable<TValue>>IOExceptionpublic 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