示例#1
0
文件: LogFat.cs 项目: vplauzon/cosbak
        public void AddDocumentBatch(long timeStamp, IImmutableList <Block> blocks)
        {
            var batch = new DocumentBatch
            {
                TimeStamp = timeStamp,
                Blocks    = blocks
            };

            InProgressDocumentBatches = InProgressDocumentBatches.Add(batch);
        }
示例#2
0
文件: LogFat.cs 项目: vplauzon/cosbak
        public void CreateCheckPoint(
            long timeStamp,
            IImmutableList <Block>?idsBlocks,
            IImmutableList <Block>?sprocsBlocks,
            IImmutableList <Block>?functionsBlocks,
            IImmutableList <Block>?triggersBlocks)
        {
            var checkpoint = new LogCheckPoint
            {
                TimeStamp       = timeStamp,
                DocumentBatches = InProgressDocumentBatches,
                IdsBlocks       = idsBlocks,
                SprocsBlocks    = sprocsBlocks,
                FunctionsBlocks = functionsBlocks,
                TriggersBlocks  = triggersBlocks
            };

            CheckPoints = CheckPoints.Add(checkpoint);
            InProgressDocumentBatches = InProgressDocumentBatches.Clear();
        }
示例#3
0
文件: LogFat.cs 项目: vplauzon/cosbak
        public IEnumerable <Block> GetInProgressDocumentsBlocks()
        {
            var docInprogressBlocks = InProgressDocumentBatches.SelectMany(b => b.Blocks);

            return(docInprogressBlocks);
        }