com.intel.hadoop.graphbuilder.graph
Class JsonVrecordFormatter

java.lang.Object
  extended by com.intel.hadoop.graphbuilder.graph.JsonVrecordFormatter
All Implemented Interfaces:
VrecordFormatter

public class JsonVrecordFormatter
extends java.lang.Object
implements VrecordFormatter

A VertexRecordFromatter using JSON encoding.


Constructor Summary
JsonVrecordFormatter()
           
 
Method Summary
 java.io.StringWriter vrecordWriter(VertexRecord vrec)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonVrecordFormatter

public JsonVrecordFormatter()
Method Detail

vrecordWriter

public java.io.StringWriter vrecordWriter(VertexRecord vrec)
Specified by:
vrecordWriter in interface VrecordFormatter
Parameters:
vrec - the VertexRecord to output.
Returns:
StringWriter with the string representation of the VertexRecord.