Esempio n. 1
0
 internal static void ChangeToSafe()
 {
     if (_instance is SafeIndexWriterUsage)
     {
         return;
     }
     _instance = new SafeIndexWriterUsage();
 }
Esempio n. 2
0
 internal static void ChangeToFast()
 {
     if (_instance is FastIndexWriterUsage)
     {
         return;
     }
     _instance = new FastIndexWriterUsage();
 }
Esempio n. 3
0
 internal IndexWriterFrame(IndexWriter writer, IndexWriterUsage usage, bool safe)
 {
     _writer = writer;
     _usage  = usage;
     _safe   = safe;
 }
Esempio n. 4
0
        //============================================================================== public static part

        public static IndexWriterFrame Get(bool safe)
        {
            //if (LuceneManager.Paused)
            //    throw LuceneManager.GetPausedException();
            return(IndexWriterUsage.GetWriterFrame(safe));
        }