Пример #1
0
            public override int[] Grow()
            {
                ParallelPostingsArray postingsArray = perField.postingsArray;
                int oldSize = perField.postingsArray.size;

                postingsArray = perField.postingsArray = postingsArray.Grow();
                bytesUsed.AddAndGet((postingsArray.BytesPerPosting() * (postingsArray.size - oldSize)));
                return(postingsArray.textStarts);
            }
Пример #2
0
            public override int[] Grow()
            {
                ParallelPostingsArray postingsArray = PerField.PostingsArray;
                int oldSize = PerField.PostingsArray.Size;

                postingsArray = PerField.PostingsArray = postingsArray.Grow();
                BytesUsed_Renamed.AddAndGet((postingsArray.BytesPerPosting() * (postingsArray.Size - oldSize)));
                return(postingsArray.TextStarts);
            }