
public class OGraphSONUtility
extends java.lang.Object
| Constructor and Description |
|---|
OGraphSONUtility(com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory)
A GraphSONUtiltiy that includes all properties of vertices and edges.
|
OGraphSONUtility(com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.ElementPropertyConfig config) |
OGraphSONUtility(com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
java.util.Set<java.lang.String> vertexPropertyKeys,
java.util.Set<java.lang.String> edgePropertyKeys)
A GraphSONUtility that includes the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
com.tinkerpop.blueprints.Edge |
edgeFromJson(java.io.InputStream json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Edge |
edgeFromJson(java.io.InputStream json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Edge from JSON.
|
com.tinkerpop.blueprints.Edge |
edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Edge |
edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Edge from JSON.
|
com.tinkerpop.blueprints.Edge |
edgeFromJson(org.codehaus.jettison.json.JSONObject json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Edge |
edgeFromJson(org.codehaus.jettison.json.JSONObject json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Edge from JSON.
|
com.tinkerpop.blueprints.Edge |
edgeFromJson(java.lang.String json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Edge |
edgeFromJson(java.lang.String json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Edge from JSON.
|
org.codehaus.jettison.json.JSONObject |
jsonFromElement(com.tinkerpop.blueprints.Element element)
Creates GraphSON for a single graph element.
|
com.fasterxml.jackson.databind.node.ObjectNode |
objectNodeFromElement(com.tinkerpop.blueprints.Element element)
Creates GraphSON for a single graph element.
|
com.tinkerpop.blueprints.Vertex |
vertexFromJson(java.io.InputStream json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Vertex |
vertexFromJson(java.io.InputStream json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Vertex from JSON.
|
com.tinkerpop.blueprints.Vertex |
vertexFromJson(com.fasterxml.jackson.databind.JsonNode json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Vertex |
vertexFromJson(com.fasterxml.jackson.databind.JsonNode json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Vertex from JSON.
|
com.tinkerpop.blueprints.Vertex |
vertexFromJson(org.codehaus.jettison.json.JSONObject json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Vertex |
vertexFromJson(org.codehaus.jettison.json.JSONObject json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Vertex from JSON.
|
com.tinkerpop.blueprints.Vertex |
vertexFromJson(java.lang.String json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Vertex |
vertexFromJson(java.lang.String json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
Reads an individual Vertex from JSON.
|
public OGraphSONUtility(com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory)
public OGraphSONUtility(com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
java.util.Set<java.lang.String> vertexPropertyKeys,
java.util.Set<java.lang.String> edgePropertyKeys)
public OGraphSONUtility(com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.ElementPropertyConfig config)
public com.tinkerpop.blueprints.Vertex vertexFromJson(org.codehaus.jettison.json.JSONObject json)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Vertex vertexFromJson(java.lang.String json)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Vertex vertexFromJson(java.io.InputStream json)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Vertex vertexFromJson(com.fasterxml.jackson.databind.JsonNode json)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Edge edgeFromJson(org.codehaus.jettison.json.JSONObject json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Edge edgeFromJson(java.lang.String json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Edge edgeFromJson(java.io.InputStream json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
throws java.io.IOException
java.io.IOExceptionpublic com.tinkerpop.blueprints.Edge edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in)
throws java.io.IOException
java.io.IOExceptionpublic org.codehaus.jettison.json.JSONObject jsonFromElement(com.tinkerpop.blueprints.Element element)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic com.fasterxml.jackson.databind.node.ObjectNode objectNodeFromElement(com.tinkerpop.blueprints.Element element)
public static com.tinkerpop.blueprints.Vertex vertexFromJson(org.codehaus.jettison.json.JSONObject json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single vertex in GraphSON format as Jettison JSONObjectfactory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include on reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Vertex vertexFromJson(java.lang.String json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single vertex in GraphSON format as a String.factory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include on reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Vertex vertexFromJson(java.io.InputStream json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single vertex in GraphSON format as an InputStream.factory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include on reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Vertex vertexFromJson(com.fasterxml.jackson.databind.JsonNode json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single vertex in GraphSON format as Jackson JsonNodefactory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include on reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Edge edgeFromJson(org.codehaus.jettison.json.JSONObject json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single edge in GraphSON format as a Jettison JSONObjectfactory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include when reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Edge edgeFromJson(java.lang.String json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single edge in GraphSON format as a Stringfactory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include when reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Edge edgeFromJson(java.io.InputStream json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single edge in GraphSON format as an InputStreamfactory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include when reading of element propertiesjava.io.IOExceptionpublic static com.tinkerpop.blueprints.Edge edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
com.tinkerpop.blueprints.Vertex out,
com.tinkerpop.blueprints.Vertex in,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
java.util.Set<java.lang.String> propertyKeys)
throws java.io.IOException
json - a single edge in GraphSON format as a Jackson JsonNodefactory - the factory responsible for constructing graph elementsmode - the mode of the GraphSONpropertyKeys - a list of keys to include when reading of element propertiesjava.io.IOExceptionCopyright © 2009–2023 OrientDB. All rights reserved.