예제 #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;
            }
        }
예제 #2
0
파일: TermsHash.cs 프로젝트: wow64bb/YAFNET
 // 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);
 }