Esempio n. 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);
        }
Esempio n. 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");
        }
Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 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();
        }