public override void Collect(int doc) { int key = index.GetOrd(doc); if (!ordSet.Exists(key)) { ordSet.Put(key); BytesRef term; if (key == -1) { term = null; } else { term = new BytesRef(); index.LookupOrd(key, term); } groups.Add(term); } }
public virtual bool Get(int index) { return(intSet.Exists(index)); }
//class SmallDocSet public bool this[int index] { get { return(intSet.Exists(index)); } }