Exemplo n.º 1
0
        // Clear all state
        internal void  Reset(bool recyclePostings)
        {
            intPool.Reset();
            bytePool.Reset();

            if (primary)
            {
                charPool.Reset();
            }

            if (recyclePostings)
            {
                termsHash.RecyclePostings(freePostings, freePostingsCount);
                freePostingsCount = 0;
            }
        }
Exemplo n.º 2
0
 // Clear all state
 internal void Reset()
 {
     // we don't reuse so we drop everything and don't fill with 0
     intPool.Reset(false, false);
     bytePool.Reset(false, false);
 }