public override void TestFixtureTearDown() { TableIndex.ClearAll(); ReadIndex.Close(); ReadIndex.Dispose(); Db.Close(); Db.Dispose(); base.TestFixtureTearDown(); }
public override void TestFixtureSetUp() { base.TestFixtureSetUp(); ReadIndex.Close(); ReadIndex.Dispose(); Thread.Sleep(500); TableIndex.ClearAll(removeFiles: false); TableIndex = new TableIndex(Path.Combine(PathName, "index"), () => new HashListMemTable(), maxSizeForMemory: 5); TableIndex.Initialize(); ReadIndex = new ReadIndex(new NoopPublisher(), 2, () => new TFChunkSequentialReader(Db, WriterCheckpoint, 0), () => new TFChunkReader(Db, WriterCheckpoint), TableIndex, new ByLengthHasher()); ReadIndex.Build(); }
public override void TestFixtureSetUp() { base.TestFixtureSetUp(); ReadIndex.Close(); ReadIndex.Dispose(); TableIndex.ClearAll(removeFiles: false); TableIndex = new TableIndex(Path.Combine(PathName, "index"), () => new HashListMemTable(maxSize: 2000), maxSizeForMemory: MaxEntriesInMemTable); ReadIndex = new ReadIndex(new NoopPublisher(), 2, () => new TFChunkSequentialReader(Db, WriterChecksum, 0), () => new TFChunkReader(Db, WriterChecksum), TableIndex, new ByLengthHasher(), new NoLRUCache <string, StreamCacheInfo>()); ReadIndex.Build(); }
public void TearDown() { _tableIndex.ClearAll(); }
public override void TestFixtureTearDown() { _tableIndex.ClearAll(); base.TestFixtureTearDown(); }