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

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