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 classGraphSerialisable.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 booleanequals(Object obj)GraphConfiggetConfig()GraphgetGraph()GraphgetGraph(GraphLibrary library)StringgetGraphId()SchemagetSchema()SchemagetSchema(GraphLibrary graphLibrary)byte[]getSerialisedConfig()byte[]getSerialisedProperties()byte[]getSerialisedSchema()StorePropertiesgetStoreProperties()StorePropertiesgetStoreProperties(GraphLibrary graphLibrary)inthashCode()StringtoString()
-
-
-
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
Graphbuilt 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
Graphbuilt 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()
-
-