protected internal AllTermDocs(SegmentReader parent) : base(parent.MaxDoc) { lock (parent) { this.deletedDocs = parent.deletedDocs; } }
public System.Object Clone() { byte[] copyBits = new byte[bits.Length]; Array.Copy(bits, 0, copyBits, 0, bits.Length); BitVector clone = new BitVector(copyBits, size); clone.count = count; return clone; }
public /*protected internal*/ SegmentTermDocs(SegmentReader parent) { this.parent = parent; this.freqStream = (IndexInput) parent.core.freqStream.Clone(); lock (parent) { this.deletedDocs = parent.deletedDocs; } this.skipInterval = parent.core.GetTermsReader().SkipInterval; this.maxSkipLevels = parent.core.GetTermsReader().MaxSkipLevels; }
public int GetDelCount() { if (delCount == - 1) { if (HasDeletions()) { System.String delFileName = GetDelFileName(); delCount = new BitVector(dir, delFileName).Count(); } else delCount = 0; } System.Diagnostics.Debug.Assert(delCount <= docCount); return delCount; }