示例#1
0
        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());
        }
示例#2
0
 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);
     }
 }
示例#3
0
 internal virtual IEnumerable <ConstraintRule> ConstraintRules()
 {
     return(ConstraintRuleById.values());
 }
示例#4
0
 internal virtual IEnumerable <CapableIndexDescriptor> IndexDescriptors()
 {
     return(IndexDescriptorById.values());
 }