internal static void ChangeToSafe() { if (_instance is SafeIndexWriterUsage) { return; } _instance = new SafeIndexWriterUsage(); }
internal static void ChangeToFast() { if (_instance is FastIndexWriterUsage) { return; } _instance = new FastIndexWriterUsage(); }
internal IndexWriterFrame(IndexWriter writer, IndexWriterUsage usage, bool safe) { _writer = writer; _usage = usage; _safe = safe; }
//============================================================================== public static part public static IndexWriterFrame Get(bool safe) { //if (LuceneManager.Paused) // throw LuceneManager.GetPausedException(); return(IndexWriterUsage.GetWriterFrame(safe)); }