public interface GraphWriter
Modifier and Type | Method and Description |
---|---|
void |
writeEdge(OutputStream outputStream,
Edge e)
Write an edge to a stream.
|
void |
writeGraph(OutputStream outputStream,
Graph g)
Write the entire graph to a stream.
|
void |
writeVertex(OutputStream outputStream,
Vertex v)
Write a vertex to a stream without writing its edges.
|
void |
writeVertex(OutputStream outputStream,
Vertex v,
Direction direction)
Write a vertex to a stream with its associated edges.
|
default void |
writeVertices(OutputStream outputStream,
org.apache.tinkerpop.gremlin.process.traversal.Traversal<?,Vertex> traversal)
Write a vertex to a stream without writing its edges.
|
default void |
writeVertices(OutputStream outputStream,
org.apache.tinkerpop.gremlin.process.traversal.Traversal<?,Vertex> traversal,
Direction direction)
Write a list of vertices from a
Traversal to a stream with its associated edges. |
void writeGraph(OutputStream outputStream, Graph g) throws IOException
IOException
void writeVertex(OutputStream outputStream, Vertex v, Direction direction) throws IOException
outputStream
- The stream to write to.v
- The vertex to write.direction
- If direction is null then no edges are written.IOException
void writeVertex(OutputStream outputStream, Vertex v) throws IOException
outputStream
- The stream to write to.v
- The vertex to write.IOException
default void writeVertices(OutputStream outputStream, org.apache.tinkerpop.gremlin.process.traversal.Traversal<?,Vertex> traversal, Direction direction) throws IOException
Traversal
to a stream with its associated edges. Only write edges as
defined by the requested direction.outputStream
- The stream to write to.traversal
- A traversal that returns a list of vertices.direction
- If direction is null then no edges are written.IOException
default void writeVertices(OutputStream outputStream, org.apache.tinkerpop.gremlin.process.traversal.Traversal<?,Vertex> traversal) throws IOException
outputStream
- The stream to write to.traversal
- A traversal that returns a list of vertices.IOException
void writeEdge(OutputStream outputStream, Edge e) throws IOException
IOException
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.