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