public class GraphBackup extends GraphToolBase
| Modifier and Type | Field and Description |
|---|---|
protected long |
backupFileIndex |
protected long |
batchCount |
protected long |
batchSize |
protected String |
outputFileNamePrefix |
protected GeSerializer |
serializer |
BACKUP_DATETIME_FORMATTER, DEFAULT_GRAPH_BACKUP_EXT, rootDir| Constructor and Description |
|---|
GraphBackup() |
GraphBackup(String rootDir,
String outputFileNamePrefix) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createOutputStream() |
org.json.JSONObject |
edgeToJson(Edge edge,
boolean encoded) |
org.json.JSONObject |
elementToJson(Element element,
boolean encoded) |
static void |
main(String[] args) |
org.json.JSONObject |
metadataItemToJson(Metadata.Entry entry,
boolean encoded) |
org.json.JSONObject |
metadataToJson(Metadata metadata,
boolean encoded) |
org.json.JSONArray |
propertiesToJson(Iterable<Property> properties,
boolean encoded) |
org.json.JSONObject |
propertyToJson(Property property,
boolean encoded) |
protected void |
run(String[] args) |
OutputStream |
save(Graph graph,
OutputStream out,
Authorizations authorizations) |
OutputStream |
save(Iterable<Vertex> vertices,
Iterable<Edge> edges,
OutputStream out) |
void |
saveEdge(Edge edge,
OutputStream out) |
OutputStream |
saveEdges(Iterable<Edge> edges,
OutputStream out) |
void |
saveStreamingProperty(OutputStream out,
Property property,
boolean encoded) |
void |
saveStreamingPropertyValues(OutputStream out,
Element element,
boolean encoded) |
void |
saveVertex(Vertex vertex,
OutputStream out) |
OutputStream |
saveVertices(Iterable<Vertex> vertices,
OutputStream out) |
org.json.JSONObject |
vertexToJson(Vertex vertex,
boolean encoded) |
getAbsoluteFilePath, getAuthorizations, getGraphprotected String outputFileNamePrefix
protected long batchSize
protected long batchCount
protected long backupFileIndex
protected GeSerializer serializer
protected void run(String[] args) throws Exception
run in class GraphToolBaseExceptionpublic OutputStream createOutputStream() throws IOException
IOExceptionpublic OutputStream save(Graph graph, OutputStream out, Authorizations authorizations) throws IOException
IOExceptionpublic OutputStream save(Iterable<Vertex> vertices, Iterable<Edge> edges, OutputStream out) throws IOException
IOExceptionpublic OutputStream saveVertices(Iterable<Vertex> vertices, OutputStream out) throws IOException
IOExceptionpublic void saveVertex(Vertex vertex, OutputStream out) throws IOException
IOExceptionpublic OutputStream saveEdges(Iterable<Edge> edges, OutputStream out) throws IOException
IOExceptionpublic void saveEdge(Edge edge, OutputStream out) throws IOException
IOExceptionpublic org.json.JSONObject vertexToJson(Vertex vertex, boolean encoded)
public org.json.JSONObject edgeToJson(Edge edge, boolean encoded)
public org.json.JSONObject elementToJson(Element element, boolean encoded)
public org.json.JSONArray propertiesToJson(Iterable<Property> properties, boolean encoded)
public org.json.JSONObject propertyToJson(Property property, boolean encoded)
public org.json.JSONObject metadataToJson(Metadata metadata, boolean encoded)
public org.json.JSONObject metadataItemToJson(Metadata.Entry entry, boolean encoded)
public void saveStreamingPropertyValues(OutputStream out, Element element, boolean encoded) throws IOException
IOExceptionpublic void saveStreamingProperty(OutputStream out, Property property, boolean encoded) throws IOException
IOExceptionCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.