Package uk.gov.gchq.gaffer.store.schema
Class Schema.BaseBuilder<CHILD_CLASS extends Schema.BaseBuilder<?>>
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.elementdefinition.ElementDefinitions.BaseBuilder<Schema,SchemaEntityDefinition,SchemaEdgeDefinition,CHILD_CLASS>
-
- uk.gov.gchq.gaffer.store.schema.Schema.BaseBuilder<CHILD_CLASS>
-
- Direct Known Subclasses:
Schema.Builder
- Enclosing class:
- Schema
public abstract static class Schema.BaseBuilder<CHILD_CLASS extends Schema.BaseBuilder<?>> extends ElementDefinitions.BaseBuilder<Schema,SchemaEntityDefinition,SchemaEdgeDefinition,CHILD_CLASS>
-
-
Constructor Summary
Constructors Constructor Description BaseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
build()
Builds theElementDefinitions
validates it and returns it.CHILD_CLASS
config(String key, String value)
CHILD_CLASS
config(Map<String,String> config)
CHILD_CLASS
json(byte[]... jsonBytes)
CHILD_CLASS
json(InputStream... inputStreams)
CHILD_CLASS
json(Path... filePaths)
CHILD_CLASS
merge(Schema schema)
CHILD_CLASS
type(String typeName, Class<?> typeClass)
CHILD_CLASS
type(String typeName, TypeDefinition type)
CHILD_CLASS
types(Map<String,TypeDefinition> types)
CHILD_CLASS
vertexSerialiser(Serialiser vertexSerialiser)
Sets theSerialiser
.CHILD_CLASS
visibilityProperty(String visibilityProperty)
-
Methods inherited from class uk.gov.gchq.gaffer.data.elementdefinition.ElementDefinitions.BaseBuilder
addEdges, addEntities, edge, edges, entities, entity, json, json, json, json, removeEdges, removeEntities
-
-
-
-
Method Detail
-
vertexSerialiser
public CHILD_CLASS vertexSerialiser(Serialiser vertexSerialiser)
Sets theSerialiser
.- Parameters:
vertexSerialiser
- theSerialiser
to set- Returns:
- this Builder
-
type
public CHILD_CLASS type(String typeName, TypeDefinition type)
-
type
public CHILD_CLASS type(String typeName, Class<?> typeClass)
-
types
public CHILD_CLASS types(Map<String,TypeDefinition> types)
-
visibilityProperty
public CHILD_CLASS visibilityProperty(String visibilityProperty)
-
config
public CHILD_CLASS config(Map<String,String> config)
-
config
public CHILD_CLASS config(String key, String value)
-
merge
public CHILD_CLASS merge(Schema schema)
-
json
public CHILD_CLASS json(InputStream... inputStreams) throws SchemaException
- Throws:
SchemaException
-
json
public CHILD_CLASS json(Path... filePaths) throws SchemaException
- Throws:
SchemaException
-
json
public CHILD_CLASS json(byte[]... jsonBytes) throws SchemaException
- Throws:
SchemaException
-
build
public Schema build()
Description copied from class:ElementDefinitions.BaseBuilder
Builds theElementDefinitions
validates it and returns it.- Overrides:
build
in classElementDefinitions.BaseBuilder<Schema,SchemaEntityDefinition,SchemaEdgeDefinition,CHILD_CLASS extends Schema.BaseBuilder<?>>
- Returns:
- the build
ElementDefinitions
.
-
-