Lucene++ - a full-featured, c++ search engine
API Documentation

Loading...
Searching...
No Matches
SerialMergeScheduler.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef SERIALMERGESCHEDULER_H
8#define SERIALMERGESCHEDULER_H
9
10#include "MergeScheduler.h"
11
12 namespace Lucene {
13
15 class LPPAPI SerialMergeScheduler : public MergeScheduler {
16 public:
17 virtual ~SerialMergeScheduler();
18
19 LUCENE_CLASS(SerialMergeScheduler);
20
21 public:
24 virtual void merge(const IndexWriterPtr& writer);
25
27 virtual void close();
28};
29
30}
31
32#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
MergeScheduler.h
Lucene::MergeScheduler
IndexWriter uses an instance implementing this interface to execute the merges selected by a MergePol...
Definition MergeScheduler.h:16
Lucene::SerialMergeScheduler
A MergeScheduler that simply does each merge sequentially, using the current thread.
Definition SerialMergeScheduler.h:15
Lucene::SerialMergeScheduler::merge
virtual void merge(const IndexWriterPtr &writer)
Just do the merges in sequence. We do this "synchronized" so that even if the application is using mu...
Lucene::SerialMergeScheduler::~SerialMergeScheduler
virtual ~SerialMergeScheduler()
Lucene::SerialMergeScheduler::close
virtual void close()
Close this MergeScheduler.
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::IndexWriterPtr
boost::shared_ptr< IndexWriter > IndexWriterPtr
Definition LuceneTypes.h:160

clucene.sourceforge.net