Package uk.gov.gchq.gaffer.graph
Class GraphSerialisable
- java.lang.Object
-
- uk.gov.gchq.gaffer.graph.GraphSerialisable
-
- All Implemented Interfaces:
Serializable
public class GraphSerialisable extends Object implements Serializable
A Serialisable object which holds the contents for creating Graphs. Does not store all the graph data, this only is used to recreate the graph after serialisation from the graph elements.- See Also:
GraphSerialisable.Builder
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphSerialisable.Builder
-
Constructor Summary
Constructors Constructor Description GraphSerialisable(GraphConfig config, Schema schema, Properties properties)
GraphSerialisable(GraphConfig config, Schema schema, StoreProperties storeProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
GraphConfig
getConfig()
Graph
getGraph()
Graph
getGraph(GraphLibrary library)
String
getGraphId()
Schema
getSchema()
Schema
getSchema(GraphLibrary graphLibrary)
byte[]
getSerialisedConfig()
byte[]
getSerialisedProperties()
byte[]
getSerialisedSchema()
StoreProperties
getStoreProperties()
StoreProperties
getStoreProperties(GraphLibrary graphLibrary)
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
GraphSerialisable
public GraphSerialisable(GraphConfig config, Schema schema, StoreProperties storeProperties)
-
GraphSerialisable
public GraphSerialisable(GraphConfig config, Schema schema, Properties properties)
-
-
Method Detail
-
getGraph
public Graph getGraph()
- Returns:
- returns a new
Graph
built from the contents of a this class.
-
getGraph
public Graph getGraph(GraphLibrary library)
- Parameters:
library
- the library to use and add into the builder.- Returns:
- returns a new
Graph
built from the contents of a this class.
-
getSchema
public Schema getSchema()
-
getSchema
public Schema getSchema(GraphLibrary graphLibrary)
-
getGraphId
public String getGraphId()
-
getSerialisedSchema
public byte[] getSerialisedSchema()
-
getStoreProperties
public StoreProperties getStoreProperties()
-
getStoreProperties
public StoreProperties getStoreProperties(GraphLibrary graphLibrary)
-
getSerialisedProperties
public byte[] getSerialisedProperties()
-
getConfig
public GraphConfig getConfig()
-
getSerialisedConfig
public byte[] getSerialisedConfig()
-
-