public override string ToString() { StringBuilder builder = new StringBuilder("[\n"); foreach (R r in _map.values()) { builder.Append(r.ToString()).Append(",\n"); } return(builder.Append("]\n").ToString()); }
private IndexMap(MutableLongObjectMap <IndexProxy> indexesById, IDictionary <SchemaDescriptor, IndexProxy> indexesByDescriptor, MutableObjectLongMap <SchemaDescriptor> indexIdsByDescriptor, MutableLongObjectMap <IndexBackedConstraintDescriptor> uniquenessConstraintsById) { this._indexesById = indexesById; this._indexesByDescriptor = indexesByDescriptor; this._indexIdsByDescriptor = indexIdsByDescriptor; this._uniquenessConstraintsById = uniquenessConstraintsById; this._descriptorsByLabelThenProperty = new SchemaDescriptorLookupSet <SchemaDescriptor>(); this._descriptorsByReltypeThenProperty = new SchemaDescriptorLookupSet <SchemaDescriptor>(); foreach (SchemaDescriptor schema in indexesByDescriptor.Keys) { AddDescriptorToLookups(schema); } this._constraintsByLabelThenProperty = new SchemaDescriptorLookupSet <IndexBackedConstraintDescriptor>(); this._constraintsByRelTypeThenProperty = new SchemaDescriptorLookupSet <IndexBackedConstraintDescriptor>(); foreach (IndexBackedConstraintDescriptor constraint in uniquenessConstraintsById.values()) { AddConstraintToLookups(constraint); } }
internal virtual IEnumerable <ConstraintRule> ConstraintRules() { return(ConstraintRuleById.values()); }
internal virtual IEnumerable <CapableIndexDescriptor> IndexDescriptors() { return(IndexDescriptorById.values()); }