TValue - public abstract class AbstractNodeWriter<TValue> extends org.apache.hadoop.mapreduce.RecordWriter<NodeWritable,TValue>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SEPARATOR
Default separator written between nodes and their associated values
|
| Constructor and Description |
|---|
AbstractNodeWriter(Writer writer)
Creates a new tuple writer using the default NTriples node formatter
|
AbstractNodeWriter(Writer writer,
NodeFormatter formatter)
Creates a new tuple writer
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(NodeWritable key,
TValue value) |
public static final String DEFAULT_SEPARATOR
public AbstractNodeWriter(Writer writer)
writer - Writerpublic AbstractNodeWriter(Writer writer, NodeFormatter formatter)
writer - Writerformatter - Node formatterpublic final void write(NodeWritable key, TValue value)
write in class org.apache.hadoop.mapreduce.RecordWriter<NodeWritable,TValue>public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
close in class org.apache.hadoop.mapreduce.RecordWriter<NodeWritable,TValue>Licenced under the Apache License, Version 2.0