public class GraphSONReader extends Object
| Constructor and Description |
|---|
GraphSONReader(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
inputGraph(Graph graph,
InputStream jsonInputStream)
Input the JSON stream data into the graph.
|
static void |
inputGraph(Graph inputGraph,
InputStream jsonInputStream,
int bufferSize) |
static void |
inputGraph(Graph inputGraph,
InputStream jsonInputStream,
int bufferSize,
Set<String> edgePropertyKeys,
Set<String> vertexPropertyKeys)
Input the JSON stream data into the graph.
|
static void |
inputGraph(Graph graph,
String filename)
Input the JSON stream data into the graph.
|
static void |
inputGraph(Graph inputGraph,
String filename,
int bufferSize) |
static void |
inputGraph(Graph inputGraph,
String filename,
int bufferSize,
Set<String> edgePropertyKeys,
Set<String> vertexPropertyKeys)
Input the JSON stream data into the graph.
|
void |
inputGraph(InputStream jsonInputStream)
Input the JSON stream data into the graph.
|
void |
inputGraph(InputStream jsonInputStream,
int bufferSize)
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)
Input the JSON stream data into the graph.
|
public GraphSONReader(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
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 void inputGraph(String filename, int bufferSize) 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 static void inputGraph(Graph graph, InputStream jsonInputStream) throws IOException
graph - the graph to populate with the JSON datajsonInputStream - an InputStream of JSON dataIOException - thrown when the JSON data is not correctly formattedpublic static void inputGraph(Graph graph, String filename) throws IOException
graph - the graph to populate with the JSON datafilename - name of a file of JSON dataIOException - thrown when the JSON data is not correctly formattedpublic static void inputGraph(Graph inputGraph, InputStream jsonInputStream, int bufferSize) throws IOException
IOExceptionpublic static void inputGraph(Graph inputGraph, String filename, int bufferSize) throws IOException
IOExceptionpublic static void inputGraph(Graph inputGraph, String filename, int bufferSize, Set<String> edgePropertyKeys, Set<String> vertexPropertyKeys) throws IOException
inputGraph - the graph to populate with the JSON datafilename - 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 static void inputGraph(Graph inputGraph, InputStream jsonInputStream, int bufferSize, Set<String> edgePropertyKeys, Set<String> vertexPropertyKeys) throws IOException
inputGraph - the graph to populate with the JSON datajsonInputStream - 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 formattedCopyright © 2010-2014. All Rights Reserved.