public virtual void Set(int index) { intSet.Put(index); if (index > maxInt) { maxInt = index; } }
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); } }