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