public SingleThreadedRecoveryTest() { // Create FASTER index var log = FasterFactory.CreateLogDevice(DirectoryConfiguration.GetHybridLogFileName()); fht = FasterFactory.Create <AdId, NumClicks, Input, Output, Empty, Functions, ICustomFasterKv> (keySpace, log); }
public SingleThreadedRecoveryTest() { // Create FASTER index var log = FasterFactory.CreateLogDevice("logs\\hlog"); fht = FasterFactory.Create <AdId, NumClicks, Input, Output, Empty, Functions, ICustomFasterKv> (keySpace, log, checkpointDir: "logs"); }
public ConcurrentTest(int threadCount) { this.threadCount = threadCount; // Create FASTER index var log = FasterFactory.CreateLogDevice("logs\\hlog"); fht = FasterFactory.Create <AdId, NumClicks, Input, Output, Empty, Functions, ICustomFasterKv> (keySpace, log, checkpointDir: "logs"); numActiveThreads = 0; inputArrays = new BlockingCollection <Input[]>(); threadNumOps = new long[threadCount]; Prepare(); }
public ConcurrentRecoveryTest(int threadCount) { this.threadCount = threadCount; tokens = new List <Guid>(); var log = FasterFactory.CreateLogDevice(DirectoryConfiguration.GetHybridLogFileName()); // Create FASTER index fht = FasterFactory.Create <AdId, NumClicks, Input, Output, Empty, Functions, ICustomFasterKv> (keySpace, log); numActiveThreads = 0; inputArrays = new BlockingCollection <Input[]>(); Prepare(); }
public ConcurrentRecoveryTest(int threadCount) { this.threadCount = threadCount; tokens = new List<Guid>(); var log = FasterFactory.CreateLogDevice("logs\\hlog"); // Create FASTER index fht = FasterFactory.Create <AdId, NumClicks, Input, Output, Empty, Functions, ICustomFasterKv> (keySpace, new LogSettings { LogDevice = log }, new CheckpointSettings { CheckpointDir = "logs" }); numActiveThreads = 0; inputArrays = new BlockingCollection<Input[]>(); Prepare(); }