
public class OGraphMLReader
extends java.lang.Object
| Constructor and Description |
|---|
OGraphMLReader(OrientBaseGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
OGraphMLReader |
defineEdgeAttributeStrategy(java.lang.String iAttributeName,
OGraphMLImportStrategy iStrategy)
Define custom strategy to use for edge attribute.
|
OGraphMLReader |
defineVertexAttributeStrategy(java.lang.String iAttributeName,
OGraphMLImportStrategy iStrategy)
Define custom strategy to use for vertex attribute.
|
int |
getBatchSize() |
OCommandOutputListener |
getOutput() |
int |
getVertexLabelIndex() |
void |
inputGraph(com.tinkerpop.blueprints.Graph inputGraph,
java.io.InputStream graphMLInputStream)
Input the GraphML stream data into the graph.
|
OGraphMLReader |
inputGraph(com.tinkerpop.blueprints.Graph inputGraph,
java.io.InputStream graphMLInputStream,
int bufferSize,
java.lang.String vertexIdKey,
java.lang.String edgeIdKey,
java.lang.String edgeLabelKey)
Input the GraphML stream data into the graph.
|
void |
inputGraph(com.tinkerpop.blueprints.Graph inputGraph,
java.lang.String filename)
Input the GraphML stream data into the graph.
|
OGraphMLReader |
inputGraph(com.tinkerpop.blueprints.Graph inputGraph,
java.lang.String filename,
int bufferSize,
java.lang.String vertexIdKey,
java.lang.String edgeIdKey,
java.lang.String edgeLabelKey)
Input the GraphML stream data into the graph.
|
OGraphMLReader |
inputGraph(java.io.InputStream graphMLInputStream)
Input the GraphML stream data into the graph.
|
OGraphMLReader |
inputGraph(java.io.InputStream graphMLInputStream,
int bufferSize)
Input the GraphML stream data into the graph.
|
OGraphMLReader |
inputGraph(java.lang.String filename)
Input the GraphML stream data into the graph.
|
OGraphMLReader |
inputGraph(java.lang.String filename,
int bufferSize)
Input the GraphML stream data into the graph.
|
boolean |
isStoreVertexIds() |
protected void |
mapId(java.util.Map<java.lang.String,ORID> vertexMappedIdMap,
java.lang.String vertexId,
ORID rid) |
protected void |
printStatus(javax.xml.stream.XMLStreamReader input,
long importedVertices,
long importedEdges) |
void |
setBatchSize(int batchSize) |
void |
setEdgeIdKey(java.lang.String edgeIdKey) |
void |
setEdgeLabelKey(java.lang.String edgeLabelKey) |
OGraphMLReader |
setOptions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> opts) |
OGraphMLReader |
setOutput(OCommandOutputListener output) |
void |
setStoreVertexIds(boolean storeVertexIds) |
void |
setVertexIdKey(java.lang.String vertexIdKey) |
void |
setVertexLabelIndex(int vertexLabelIndex) |
public OGraphMLReader(OrientBaseGraph graph)
graph - the graph to populate with the GraphML datapublic OGraphMLReader defineVertexAttributeStrategy(java.lang.String iAttributeName, OGraphMLImportStrategy iStrategy)
iAttributeName - attribute nameiStrategy - strategy implementationpublic OGraphMLReader defineEdgeAttributeStrategy(java.lang.String iAttributeName, OGraphMLImportStrategy iStrategy)
iAttributeName - attribute nameiStrategy - strategy implementationpublic void inputGraph(com.tinkerpop.blueprints.Graph inputGraph,
java.io.InputStream graphMLInputStream)
throws java.io.IOException
inputGraph - the graph to populate with the GraphML datagraphMLInputStream - an InputStream of GraphML datajava.io.IOException - thrown when the GraphML data is not correctly formattedpublic void inputGraph(com.tinkerpop.blueprints.Graph inputGraph,
java.lang.String filename)
throws java.io.IOException
inputGraph - the graph to populate with the GraphML datafilename - name of a file containing GraphML datajava.io.IOException - thrown when the GraphML data is not correctly formattedpublic OGraphMLReader inputGraph(com.tinkerpop.blueprints.Graph inputGraph, java.lang.String filename, int bufferSize, java.lang.String vertexIdKey, java.lang.String edgeIdKey, java.lang.String edgeLabelKey) throws java.io.IOException
inputGraph - the graph to populate with the GraphML datafilename - name of a file containing GraphML databufferSize - the amount of elements to hold in memory before committing a transactions
(only valid for TransactionalGraphs)vertexIdKey - if the id of a vertex is a <data/> property, fetch it from the data
property.edgeIdKey - if the id of an edge is a <data/> property, fetch it from the data
property.edgeLabelKey - if the label of an edge is a <data/> property, fetch it from the data
property.java.io.IOException - thrown when the GraphML data is not correctly formattedpublic OGraphMLReader inputGraph(com.tinkerpop.blueprints.Graph inputGraph, java.io.InputStream graphMLInputStream, int bufferSize, java.lang.String vertexIdKey, java.lang.String edgeIdKey, java.lang.String edgeLabelKey) throws java.io.IOException
inputGraph - the graph to populate with the GraphML datagraphMLInputStream - an InputStream of GraphML databufferSize - the amount of elements to hold in memory before committing a transactions
(only valid for TransactionalGraphs)vertexIdKey - if the id of a vertex is a <data/> property, fetch it from the data
property.edgeIdKey - if the id of an edge is a <data/> property, fetch it from the data
property.edgeLabelKey - if the label of an edge is a <data/> property, fetch it from the data
property.java.io.IOException - thrown when the GraphML data is not correctly formattedpublic int getVertexLabelIndex()
public void setVertexLabelIndex(int vertexLabelIndex)
public void setVertexIdKey(java.lang.String vertexIdKey)
vertexIdKey - if the id of a vertex is a <data/> property, fetch it from the data
property.public void setEdgeIdKey(java.lang.String edgeIdKey)
edgeIdKey - if the id of an edge is a <data/> property, fetch it from the data
property.public void setEdgeLabelKey(java.lang.String edgeLabelKey)
edgeLabelKey - if the label of an edge is a <data/> property, fetch it from the data
property.public OGraphMLReader inputGraph(java.io.InputStream graphMLInputStream) throws java.io.IOException
graphMLInputStream - an InputStream of GraphML datajava.io.IOException - thrown when the GraphML data is not correctly formattedpublic OGraphMLReader inputGraph(java.lang.String filename) throws java.io.IOException
filename - name of a file containing GraphML datajava.io.IOException - thrown when the GraphML data is not correctly formattedpublic OGraphMLReader inputGraph(java.io.InputStream graphMLInputStream, int bufferSize) throws java.io.IOException
graphMLInputStream - an InputStream of GraphML databufferSize - the amount of elements to hold in memory before committing a transactions
(only valid for TransactionalGraphs)java.io.IOException - thrown when the GraphML data is not correctly formattedpublic OGraphMLReader inputGraph(java.lang.String filename, int bufferSize) throws java.io.IOException
filename - name of a file containing GraphML databufferSize - the amount of elements to hold in memory before committing a transactions
(only valid for TransactionalGraphs)java.io.IOException - thrown when the GraphML data is not correctly formattedpublic boolean isStoreVertexIds()
public void setStoreVertexIds(boolean storeVertexIds)
public OGraphMLReader setOptions(java.util.Map<java.lang.String,java.util.List<java.lang.String>> opts)
public int getBatchSize()
public void setBatchSize(int batchSize)
protected void mapId(java.util.Map<java.lang.String,ORID> vertexMappedIdMap, java.lang.String vertexId, ORID rid)
public OCommandOutputListener getOutput()
public OGraphMLReader setOutput(OCommandOutputListener output)
protected void printStatus(javax.xml.stream.XMLStreamReader input,
long importedVertices,
long importedEdges)
Copyright © 2009–2023 OrientDB. All rights reserved.