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 Schemabuild()Builds theElementDefinitionsvalidates it and returns it.CHILD_CLASSconfig(String key, String value)CHILD_CLASSconfig(Map<String,String> config)CHILD_CLASSjson(byte[]... jsonBytes)CHILD_CLASSjson(InputStream... inputStreams)CHILD_CLASSjson(Path... filePaths)CHILD_CLASSmerge(Schema schema)CHILD_CLASStype(String typeName, Class<?> typeClass)CHILD_CLASStype(String typeName, TypeDefinition type)CHILD_CLASStypes(Map<String,TypeDefinition> types)CHILD_CLASSvertexSerialiser(Serialiser vertexSerialiser)Sets theSerialiser.CHILD_CLASSvisibilityProperty(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- theSerialiserto 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.BaseBuilderBuilds theElementDefinitionsvalidates it and returns it.- Overrides:
buildin classElementDefinitions.BaseBuilder<Schema,SchemaEntityDefinition,SchemaEdgeDefinition,CHILD_CLASS extends Schema.BaseBuilder<?>>- Returns:
- the build
ElementDefinitions.
-
-