public override void Check(IndexEntry record, CheckerEngine <IndexEntry, Org.Neo4j.Consistency.report.ConsistencyReport_IndexConsistencyReport> engine, RecordAccess records) { long id = record.Id; switch (_entityType.innerEnumValue) { case EntityType.InnerEnum.NODE: engine.ComparativeCheck(records.Node(id), _nodeChecker); break; case EntityType.InnerEnum.RELATIONSHIP: if (_indexRule.canSupportUniqueConstraint()) { engine.Report().relationshipConstraintIndex(); } engine.ComparativeCheck(records.Relationship(id), _relationshipChecker); break; default: throw new System.InvalidOperationException("Don't know how to check index entry of entity type " + _entityType); } }