public class OGraphSONReader extends Object
Constructor and Description |
---|
OGraphSONReader(com.tinkerpop.blueprints.Graph graph) |
Modifier and Type | Method and Description |
---|---|
OCommandOutputListener |
getOutput() |
void |
inputGraph(InputStream jsonInputStream)
Input the JSON stream data into the graph.
|
void |
inputGraph(InputStream jsonInputStream,
int bufferSize) |
void |
inputGraph(InputStream jsonInputStream,
int bufferSize,
Set<String> edgePropertyKeys,
Set<String> vertexPropertyKeys)
Input the JSON stream data into the graph.
|
void |
inputGraph(String filename)
Input the JSON stream data into the graph.
|
void |
inputGraph(String filename,
int bufferSize) |
void |
inputGraph(String filename,
int bufferSize,
Set<String> edgePropertyKeys,
Set<String> vertexPropertyKeys)
Input the JSON stream data into the graph.
|
protected void |
printStatus(com.fasterxml.jackson.core.JsonParser jp,
long importedVertices,
long importedEdges) |
OGraphSONReader |
setOutput(OCommandOutputListener output) |
public OGraphSONReader(com.tinkerpop.blueprints.Graph graph)
graph
- the graph to populate with the JSON datapublic void inputGraph(InputStream jsonInputStream) throws IOException
jsonInputStream
- an InputStream of JSON dataIOException
- thrown when the JSON data is not correctly formattedpublic void inputGraph(String filename) throws IOException
filename
- name of a file of JSON dataIOException
- thrown when the JSON data is not correctly formattedpublic void inputGraph(InputStream jsonInputStream, int bufferSize) throws IOException
IOException
public void inputGraph(String filename, int bufferSize) throws IOException
IOException
public void inputGraph(String filename, int bufferSize, Set<String> edgePropertyKeys, Set<String> vertexPropertyKeys) throws IOException
filename
- name of a file of JSON databufferSize
- the amount of elements to hold in memory before committing a transactions
(only valid for TransactionalGraphs)IOException
- thrown when the JSON data is not correctly formattedpublic void inputGraph(InputStream jsonInputStream, int bufferSize, Set<String> edgePropertyKeys, Set<String> vertexPropertyKeys) throws IOException
jsonInputStream
- an InputStream of JSON databufferSize
- the amount of elements to hold in memory before committing a transactions
(only valid for TransactionalGraphs)IOException
- thrown when the JSON data is not correctly formattedpublic OCommandOutputListener getOutput()
public OGraphSONReader setOutput(OCommandOutputListener output)
protected void printStatus(com.fasterxml.jackson.core.JsonParser jp, long importedVertices, long importedEdges)
Copyright © 2009–2020 OrientDB. All rights reserved.