Package uk.gov.gchq.gaffer.store.schema
Class SchemaElementDefinition
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.schema.SchemaElementDefinition
-
- All Implemented Interfaces:
Cloneable
,ElementDefinition
- Direct Known Subclasses:
SchemaEdgeDefinition
,SchemaEntityDefinition
public abstract class SchemaElementDefinition extends Object implements ElementDefinition
ASchemaElementDefinition
is the representation of a single group in aSchema
. Each element needs identifiers and can optionally have properties, an aggregator and a validator.
-
-
Constructor Summary
Constructors Constructor Description SchemaElementDefinition()
-
Method Summary
-
-
-
Method Detail
-
validate
public uk.gov.gchq.koryphe.ValidationResult validate()
Uses the element definition validator to validate the element definition.- Returns:
- true if the element definition is valid, otherwise false.
-
containsProperty
public boolean containsProperty(String propertyName)
-
getIdentifiers
public Collection<IdentifierType> getIdentifiers()
-
getIdentifierMap
public Map<IdentifierType,String> getIdentifierMap()
-
containsIdentifier
public boolean containsIdentifier(IdentifierType identifierType)
-
getIdentifierTypeName
public String getIdentifierTypeName(IdentifierType idType)
-
getPropertyTypeNames
public Collection<String> getPropertyTypeNames()
-
getIdentifierTypeNames
public Collection<String> getIdentifierTypeNames()
-
getOriginalAggregator
public ElementAggregator getOriginalAggregator()
-
getOriginalAggregateFunctions
public List<uk.gov.gchq.koryphe.tuple.binaryoperator.TupleAdaptedBinaryOperator<String,?>> getOriginalAggregateFunctions()
-
getFullAggregator
public ElementAggregator getFullAggregator()
-
getIngestAggregator
public ElementAggregator getIngestAggregator()
-
getQueryAggregator
public ElementAggregator getQueryAggregator(Set<String> viewGroupBy, ElementAggregator viewAggregator)
-
getValidator
public ElementFilter getValidator()
-
getOriginalValidator
public ElementFilter getOriginalValidator()
-
hasValidation
public boolean hasValidation()
-
getValidator
public ElementFilter getValidator(boolean includeIsA)
-
getOriginalValidateFunctions
public uk.gov.gchq.koryphe.tuple.predicate.TupleAdaptedPredicate[] getOriginalValidateFunctions()
-
getPropertyTypeDefs
public Iterable<TypeDefinition> getPropertyTypeDefs()
-
getPropertyTypeDef
public TypeDefinition getPropertyTypeDef(String property)
-
getIdentifierClass
public Class<?> getIdentifierClass(IdentifierType idType)
-
getDescription
public String getDescription()
-
getExpandedDefinition
public abstract SchemaElementDefinition getExpandedDefinition()
-
lock
public void lock()
Description copied from interface:ElementDefinition
Locks the fields so only read access is allowed.- Specified by:
lock
in interfaceElementDefinition
-
isAggregate
public boolean isAggregate()
-
setAggregate
public void setAggregate(boolean aggregate)
-
-