public override IUniqueIndex <TEntity, TUniqueKey> CreateUniqueIndex <TEntity, TUniqueKey>(ITable <TEntity> table, IKeyInfo <TEntity, TUniqueKey> keyInfo) { UniqueHashtable <TUniqueKey, TEntity> hashTable = new UniqueHashtable <TUniqueKey, TEntity>(); UniqueIndex <TEntity, TUniqueKey> index = new UniqueIndex <TEntity, TUniqueKey>(table, keyInfo, hashTable); return(index); }
public override IUniqueIndex <TEntity, TUniqueKey> CreateUniqueIndex <TEntity, TUniqueKey>(ITable <TEntity> table, IKeyInfo <TEntity, TUniqueKey> keyInfo) { UniqueRedBlackTree <TUniqueKey, TEntity> tree = new UniqueRedBlackTree <TUniqueKey, TEntity>(keyInfo.KeyComparer); UniqueIndex <TEntity, TUniqueKey> index = new UniqueIndex <TEntity, TUniqueKey>(table, keyInfo, tree); return(index); }