Lucene.Net.Search.CachingCollector.ReplayInit C# (CSharp) Method

ReplayInit() private method

Reused by the specialized inner classes.
private ReplayInit ( Collector other ) : void
other Collector
return void
        internal virtual void ReplayInit(Collector other)
        {
            if (!Cached)
            {
                throw new InvalidOperationException("cannot replay: cache was cleared because too much RAM was required");
            }

            if (!other.AcceptsDocsOutOfOrder() && this.Other.AcceptsDocsOutOfOrder())
            {
                throw new System.ArgumentException("cannot replay: given collector does not support " + "out-of-order collection, while the wrapped collector does. " + "Therefore cached documents may be out-of-order.");
            }

            //System.out.println("CC: replay totHits=" + (upto + base));
            if (LastReaderContext != null)
            {
                CachedSegs.Add(new SegStart(LastReaderContext, @base + Upto));
                LastReaderContext = null;
            }
        }