Package uk.gov.gchq.gaffer.graph
Class Graph.Builder
- java.lang.Object
-
- uk.gov.gchq.gaffer.graph.Graph.Builder
-
- Enclosing class:
- Graph
public static class Graph.Builder extends Object
Builder for
We recommend instantiating a Graph from a graphConfig.json file, a schema directory and a store.properties file. For example:Graph
.new Graph.Builder() .config(Paths.get("graphConfig.json")) .addSchemas(Paths.get("schema")) .storeProperties(Paths.get("store.properties")) .build();
-
-
Field Summary
Fields Modifier and Type Field Description static String
UNABLE_TO_READ_SCHEMA_FROM_URI
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
UNABLE_TO_READ_SCHEMA_FROM_URI
public static final String UNABLE_TO_READ_SCHEMA_FROM_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
config
public Graph.Builder config(Path path)
-
config
public Graph.Builder config(URI uri)
-
config
public Graph.Builder config(InputStream stream)
-
config
public Graph.Builder config(byte[] bytes)
-
config
public Graph.Builder config(GraphConfig config)
-
addToLibrary
public Graph.Builder addToLibrary(boolean addToLibrary)
-
description
public Graph.Builder description(String description)
-
parentStorePropertiesId
public Graph.Builder parentStorePropertiesId(String parentStorePropertiesId)
-
storeProperties
public Graph.Builder storeProperties(Properties properties)
-
storeProperties
public Graph.Builder storeProperties(StoreProperties properties)
-
storeProperties
public Graph.Builder storeProperties(String propertiesPath)
-
storeProperties
public Graph.Builder storeProperties(Path propertiesPath)
-
storeProperties
public Graph.Builder storeProperties(InputStream propertiesStream)
-
storeProperties
public Graph.Builder storeProperties(URI propertiesURI)
-
addStoreProperties
public Graph.Builder addStoreProperties(Properties properties)
-
addStoreProperties
public Graph.Builder addStoreProperties(StoreProperties updateProperties)
-
addStoreProperties
public Graph.Builder addStoreProperties(String updatePropertiesPath)
-
addStoreProperties
public Graph.Builder addStoreProperties(Path updatePropertiesPath)
-
addStoreProperties
public Graph.Builder addStoreProperties(InputStream updatePropertiesStream)
-
addStoreProperties
public Graph.Builder addStoreProperties(URI updatePropertiesURI)
-
addParentSchemaIds
public Graph.Builder addParentSchemaIds(List<String> parentSchemaIds)
-
addParentSchemaIds
public Graph.Builder addParentSchemaIds(String... parentSchemaIds)
-
addSchemas
public Graph.Builder addSchemas(Schema... schemaModules)
-
addSchemas
public Graph.Builder addSchemas(InputStream... schemaStreams)
-
addSchemas
public Graph.Builder addSchemas(Path... schemaPaths)
-
addSchemas
public Graph.Builder addSchemas(byte[]... schemaBytesArray)
-
addSchema
public Graph.Builder addSchema(Schema schemaModule)
-
addSchema
public Graph.Builder addSchema(InputStream schemaStream)
-
addSchema
public Graph.Builder addSchema(URI schemaURI)
-
addSchemas
public Graph.Builder addSchemas(URI... schemaURI)
-
addSchema
public Graph.Builder addSchema(Path schemaPath)
-
addSchema
public Graph.Builder addSchema(byte[] schemaBytes)
-
store
public Graph.Builder store(Store store)
-
build
public Graph build()
-
-