public class KryoWriter extends java.lang.Object implements GraphWriter
GraphWriter for the Gremlin Structure serialization format based on Kryo. The format is meant to be
non-lossy in terms of Gremlin Structure to Gremlin Structure migrations (assuming both structure implementations
support the same graph features).| Modifier and Type | Class and Description |
|---|---|
static class |
KryoWriter.Builder |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
DELIMITER |
| Modifier and Type | Method and Description |
|---|---|
static KryoWriter.Builder |
build() |
void |
writeEdge(java.io.OutputStream outputStream,
Edge e)
Write an edge to a stream.
|
void |
writeGraph(java.io.OutputStream outputStream,
Graph g)
Write the entire graph to a stream.
|
void |
writeVertex(java.io.OutputStream outputStream,
Vertex v)
Write a vertex to a stream without writing its edges.
|
void |
writeVertex(java.io.OutputStream outputStream,
Vertex v,
Direction direction)
Write a vertex to a stream with its associated edges.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteVertices, writeVerticespublic void writeGraph(java.io.OutputStream outputStream,
Graph g)
throws java.io.IOException
GraphWriterwriteGraph in interface GraphWriterjava.io.IOExceptionpublic void writeVertex(java.io.OutputStream outputStream,
Vertex v,
Direction direction)
throws java.io.IOException
GraphWriterwriteVertex in interface GraphWriteroutputStream - The stream to write to.v - The vertex to write.direction - If direction is null then no edges are written.java.io.IOExceptionpublic void writeVertex(java.io.OutputStream outputStream,
Vertex v)
throws java.io.IOException
GraphWriterwriteVertex in interface GraphWriteroutputStream - The stream to write to.v - The vertex to write.java.io.IOExceptionpublic void writeEdge(java.io.OutputStream outputStream,
Edge e)
throws java.io.IOException
GraphWriterwriteEdge in interface GraphWriterjava.io.IOExceptionpublic static KryoWriter.Builder build()
Copyright © 2013-2015 TinkerPop. All Rights Reserved.