Ejemplo n.º 1
0
 internal static void ChangeToSafe()
 {
     if (_instance is SafeIndexWriterUsage)
     {
         return;
     }
     _instance = new SafeIndexWriterUsage();
 }
Ejemplo n.º 2
0
        internal static void PauseIndexing()
        {
            _indexingSemaphore.Reset();

            Commit();
            IndexWriterUsage.WaitForRunOutAllWriters();
            _paused = true;
        }
Ejemplo n.º 3
0
 internal static void ChangeToFast()
 {
     if (_instance is FastIndexWriterUsage)
     {
         return;
     }
     _instance = new FastIndexWriterUsage();
 }
Ejemplo n.º 4
0
 internal IndexWriterFrame(IndexWriter writer, IndexWriterUsage usage, bool safe)
 {
     _writer = writer;
     _usage  = usage;
     _safe   = safe;
 }
Ejemplo n.º 5
0
        //============================================================================== public static part

        public static IndexWriterFrame Get(bool safe)
        {
            //if (LuceneManager.Paused)
            //    throw LuceneManager.GetPausedException();
            return(IndexWriterUsage.GetWriterFrame(safe));
        }
Ejemplo n.º 6
0
 public IndexWriterUsageAccessor(IndexWriterUsage target) : base(target) { }
Ejemplo n.º 7
0
 internal static void ChangeToSafe()
 {
     if (_instance is SafeIndexWriterUsage)
         return;
     _instance = new SafeIndexWriterUsage();
 }
Ejemplo n.º 8
0
 internal static void ChangeToFast()
 {
     if (_instance is FastIndexWriterUsage)
         return;
     _instance = new FastIndexWriterUsage();
 }
Ejemplo n.º 9
0
 internal IndexWriterFrame(IndexWriter writer, IndexWriterUsage usage, bool safe)
 {
     _writer = writer;
     _usage = usage;
     _safe = safe;
 }
Ejemplo n.º 10
0
        // ============================================================================== public static part

        public static IndexWriterFrame Get(bool safe)
        {
            return(IndexWriterUsage.GetWriterFrame(safe));
        }