com.tinkerpop.rexster.gremlin.converter
Class JSONResultConverter
java.lang.Object
com.tinkerpop.rexster.gremlin.converter.JSONResultConverter
- All Implemented Interfaces:
- ResultConverter<org.codehaus.jettison.json.JSONArray>
public class JSONResultConverter
- extends Object
- implements ResultConverter<org.codehaus.jettison.json.JSONArray>
Converts a result from Gremlin to a JSONArray using GraphSON format.
Method Summary |
org.codehaus.jettison.json.JSONArray |
convert(Object result)
Converts the result to a sensible format given the implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONResultConverter
public JSONResultConverter(boolean showTypes,
long offsetStart,
long offsetEnd,
List<String> returnKeys)
convert
public org.codehaus.jettison.json.JSONArray convert(Object result)
throws Exception
- Description copied from interface:
ResultConverter
- Converts the result to a sensible format given the implementation.
- Specified by:
convert
in interface ResultConverter<org.codehaus.jettison.json.JSONArray>
- Throws:
Exception
Copyright © 2009-2012. All Rights Reserved.