|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.hadoop.graphbuilder.graph.simplegraph.SimpleGraphOutput
public class SimpleGraphOutput
Controls the output of a SimpleGraph
or a SimpleSubGraph
. It
outputs the graph into 3 parts: edge data, adjacency list and a metafile
sotring the number of edges in the partition or subpartition. The output
directory is organized as follows:
GraphFormatter
.
Constructor Summary | |
---|---|
SimpleGraphOutput()
|
Method Summary | |
---|---|
void |
close()
Close the output. |
void |
configure(org.apache.hadoop.mapred.JobConf conf)
Configure this GraphOutput using JobConf . |
void |
init(org.apache.hadoop.mapred.JobConf conf)
Set the OutputFormat in the JobConf . |
void |
write(Graph g,
EdgeFormatter formatter,
org.apache.hadoop.mapred.OutputCollector out,
org.apache.hadoop.mapred.Reporter reporter)
Write out the graph to the OutputCollector . |
void |
writeAndClear(Graph g,
EdgeFormatter formatter,
org.apache.hadoop.mapred.OutputCollector out,
org.apache.hadoop.mapred.Reporter reporter)
Write out the graph and clearing the fields written to free up memory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleGraphOutput()
Method Detail |
---|
public void init(org.apache.hadoop.mapred.JobConf conf)
GraphOutput
OutputFormat
in the JobConf
.
init
in interface GraphOutput
public void configure(org.apache.hadoop.mapred.JobConf conf)
GraphOutput
JobConf
.
configure
in interface GraphOutput
public void write(Graph g, EdgeFormatter formatter, org.apache.hadoop.mapred.OutputCollector out, org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
GraphOutput
OutputCollector
.
write
in interface GraphOutput
g
- the graph to output.formatter
- formatter for the graph string representation.
java.io.IOException
public void writeAndClear(Graph g, EdgeFormatter formatter, org.apache.hadoop.mapred.OutputCollector out, org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
GraphOutput
writeAndClear
in interface GraphOutput
g
- the graph to output.formatter
- formatter of the graph string representation.
java.io.IOException
public void close() throws java.io.IOException
GraphOutput
close
in interface GraphOutput
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |