예제 #1
0
        public SingleThreadedRecoveryTest()
        {
            // Create FASTER index
            var log = FasterFactory.CreateLogDevice(DirectoryConfiguration.GetHybridLogFileName());

            fht = FasterFactory.Create
                  <AdId, NumClicks, Input, Output, Empty, Functions, ICustomFasterKv>
                      (keySpace, log);
        }
예제 #2
0
        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");
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
        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();
        }