Search in sources :

Example 1 with SchemaDescriptorImplementation

use of org.neo4j.internal.schema.SchemaDescriptorImplementation in project neo4j by neo4j.

the class SchemaStore method buildSchemaDescriptor.

private static SchemaDescriptor buildSchemaDescriptor(Map<String, Value> props) throws MalformedSchemaRuleException {
    EntityType entityType = getEntityType(getString(PROP_SCHEMA_DESCRIPTOR_ENTITY_TYPE, props));
    PropertySchemaType propertySchemaType = getPropertySchemaType(getString(PROP_SCHEMA_DESCRIPTOR_PROPERTY_SCHEMA_TYPE, props));
    int[] entityIds = getIntArray(PROP_SCHEMA_DESCRIPTOR_ENTITY_IDS, props);
    int[] propertyIds = getIntArray(PROP_SCHEMA_DESCRIPTOR_PROPERTY_IDS, props);
    return new SchemaDescriptorImplementation(entityType, propertySchemaType, entityIds, propertyIds);
}
Also used : EntityType(org.neo4j.common.EntityType) SchemaDescriptorImplementation(org.neo4j.internal.schema.SchemaDescriptorImplementation) PropertySchemaType(org.neo4j.internal.schema.PropertySchemaType)

Aggregations

EntityType (org.neo4j.common.EntityType)1 PropertySchemaType (org.neo4j.internal.schema.PropertySchemaType)1 SchemaDescriptorImplementation (org.neo4j.internal.schema.SchemaDescriptorImplementation)1