public class OGraphSONUtility extends 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,
Set<String> vertexPropertyKeys,
Set<String> edgePropertyKeys)
A GraphSONUtility that includes the specified properties.
|
Modifier and Type | Method and Description |
---|---|
com.tinkerpop.blueprints.Edge |
edgeFromJson(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(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,
Set<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,
Set<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,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
com.tinkerpop.blueprints.Edge |
edgeFromJson(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(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,
Set<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(InputStream json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Vertex |
vertexFromJson(InputStream json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
Set<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,
Set<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,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
com.tinkerpop.blueprints.Vertex |
vertexFromJson(String json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static com.tinkerpop.blueprints.Vertex |
vertexFromJson(String json,
com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory,
com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode,
Set<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, Set<String> vertexPropertyKeys, Set<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 IOException
IOException
public com.tinkerpop.blueprints.Vertex vertexFromJson(String json) throws IOException
IOException
public com.tinkerpop.blueprints.Vertex vertexFromJson(InputStream json) throws IOException
IOException
public com.tinkerpop.blueprints.Vertex vertexFromJson(com.fasterxml.jackson.databind.JsonNode json) throws IOException
IOException
public com.tinkerpop.blueprints.Edge edgeFromJson(org.codehaus.jettison.json.JSONObject json, com.tinkerpop.blueprints.Vertex out, com.tinkerpop.blueprints.Vertex in) throws IOException
IOException
public com.tinkerpop.blueprints.Edge edgeFromJson(String json, com.tinkerpop.blueprints.Vertex out, com.tinkerpop.blueprints.Vertex in) throws IOException
IOException
public com.tinkerpop.blueprints.Edge edgeFromJson(InputStream json, com.tinkerpop.blueprints.Vertex out, com.tinkerpop.blueprints.Vertex in) throws IOException
IOException
public com.tinkerpop.blueprints.Edge edgeFromJson(com.fasterxml.jackson.databind.JsonNode json, com.tinkerpop.blueprints.Vertex out, com.tinkerpop.blueprints.Vertex in) throws IOException
IOException
public org.codehaus.jettison.json.JSONObject jsonFromElement(com.tinkerpop.blueprints.Element element) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public 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, Set<String> propertyKeys) throws 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 propertiesIOException
public static com.tinkerpop.blueprints.Vertex vertexFromJson(String json, com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory, com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode, Set<String> propertyKeys) throws 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 propertiesIOException
public static com.tinkerpop.blueprints.Vertex vertexFromJson(InputStream json, com.tinkerpop.blueprints.util.io.graphson.ElementFactory factory, com.tinkerpop.blueprints.util.io.graphson.GraphSONMode mode, Set<String> propertyKeys) throws 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 propertiesIOException
public 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, Set<String> propertyKeys) throws 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 propertiesIOException
public 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, Set<String> propertyKeys) throws 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 propertiesIOException
public static com.tinkerpop.blueprints.Edge edgeFromJson(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, Set<String> propertyKeys) throws 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 propertiesIOException
public static com.tinkerpop.blueprints.Edge edgeFromJson(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, Set<String> propertyKeys) throws 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 propertiesIOException
public 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, Set<String> propertyKeys) throws 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 propertiesIOException
Copyright © 2009–2020 OrientDB. All rights reserved.