| Package | Description |
|---|---|
| com.tinkerpop.blueprints.util.io.graphson |
| Modifier and Type | Method and Description |
|---|---|
static GraphSONMode |
GraphSONMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphSONMode[] |
GraphSONMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Edge |
GraphSONUtility.edgeFromJson(InputStream json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
static Edge |
GraphSONUtility.edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
static Edge |
GraphSONUtility.edgeFromJson(org.codehaus.jettison.json.JSONObject json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
static Edge |
GraphSONUtility.edgeFromJson(String json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
static org.codehaus.jettison.json.JSONObject |
GraphSONUtility.jsonFromElement(Element element,
Set<String> propertyKeys,
GraphSONMode mode)
Creates a Jettison JSONObject from a graph element.
|
static com.fasterxml.jackson.databind.node.ObjectNode |
GraphSONUtility.objectNodeFromElement(Element element,
Set<String> propertyKeys,
GraphSONMode mode)
Creates a Jackson ObjectNode from a graph element.
|
static void |
GraphSONWriter.outputGraph(Graph graph,
OutputStream jsonOutputStream,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static void |
GraphSONWriter.outputGraph(Graph graph,
OutputStream jsonOutputStream,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static void |
GraphSONWriter.outputGraph(Graph graph,
String filename,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static void |
GraphSONWriter.outputGraph(Graph graph,
String filename,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
void |
GraphSONWriter.outputGraph(OutputStream jsonOutputStream,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
void |
GraphSONWriter.outputGraph(OutputStream jsonOutputStream,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode,
boolean normalize) |
void |
GraphSONWriter.outputGraph(String filename,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys,
GraphSONMode mode)
Write the data in a Graph to a JSON OutputStream.
|
static Vertex |
GraphSONUtility.vertexFromJson(InputStream json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
static Vertex |
GraphSONUtility.vertexFromJson(com.fasterxml.jackson.databind.JsonNode json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
static Vertex |
GraphSONUtility.vertexFromJson(org.codehaus.jettison.json.JSONObject json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
static Vertex |
GraphSONUtility.vertexFromJson(String json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
| Constructor and Description |
|---|
GraphSONUtility(GraphSONMode mode,
ElementFactory factory)
A GraphSONUtiltiy that includes all properties of vertices and edges.
|
GraphSONUtility(GraphSONMode mode,
ElementFactory factory,
ElementPropertyConfig config) |
GraphSONUtility(GraphSONMode mode,
ElementFactory factory,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys)
A GraphSONUtility that includes the specified properties.
|
Copyright © 2010-2014. All Rights Reserved.