public IndexDescriptor(SchemaDescriptor schema, Type type, Optional <string> userSuppliedName, IndexProviderDescriptor providerDescriptor) { this.SchemaConflict = schema; this.TypeConflict = type; this.UserSuppliedNameConflict = userSuppliedName; this.ProviderDescriptorConflict = providerDescriptor; }
private void AssertRule(StoreIndexDescriptor rule, string label, string propertyKey, IndexDescriptor.Type type) { assertTrue(SchemaDescriptorPredicates.hasLabel(rule, LabelId(label))); assertTrue(SchemaDescriptorPredicates.hasProperty(rule, PropId(propertyKey))); assertEquals(type, rule.Type()); }