|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.hadoop.graphbuilder.graph.glgraph.GLGraphOutput
public class GLGraphOutput
Controls the output of a GLGraph. It outputs the graph into three parts:
vid2lvid
map, edge data, and (CSC,CSR) adjacency structure. The
output directory is organized as follows:
GraphFormatter
.
Constructor Summary | |
---|---|
GLGraphOutput()
Default constructor. |
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 GLGraphOutput()
Method Detail |
---|
public final 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 final void write(Graph g, EdgeFormatter formatter, org.apache.hadoop.mapred.OutputCollector out, org.apache.hadoop.mapred.Reporter reporter) throws java.lang.Exception
GraphOutput
OutputCollector
.
write
in interface GraphOutput
g
- the graph to output.formatter
- formatter for the graph string representation.
java.lang.Exception
public final void writeAndClear(Graph g, EdgeFormatter formatter, org.apache.hadoop.mapred.OutputCollector out, org.apache.hadoop.mapred.Reporter reporter) throws java.lang.Exception
GraphOutput
writeAndClear
in interface GraphOutput
g
- the graph to output.formatter
- formatter of the graph string representation.
java.io.IOException
java.lang.Exception
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 |