예제 #1
0
        public LagStepImpl <TKey, TValue, TCursor> Clone()
        {
            var instance = new LagStepImpl <TKey, TValue, TCursor>
            {
                _cursor          = _cursor.Clone(),
                _laggedCursor    = _laggedCursor.Clone(),
                _width           = _width,
                _step            = _step,
                _allowIncomplete = _allowIncomplete,
                _currentWidth    = _currentWidth,
                State            = State
            };

            return(instance);
        }
예제 #2
0
        public LagStepImpl <TKey, TValue, TCursor> Initialize()
        {
            var instance = new LagStepImpl <TKey, TValue, TCursor>
            {
                _cursor          = _cursor.Initialize(),
                _laggedCursor    = _cursor.Initialize(),
                _width           = _width,
                _step            = _step,
                _allowIncomplete = _allowIncomplete,
                _currentWidth    = 0,
                State            = CursorState.Initialized
            };

            return(instance);
        }