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

Loading...
Searching...
No Matches
MergeScheduler.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 MERGESCHEDULER_H
8#define MERGESCHEDULER_H
9
10#include "LuceneObject.h"
11
12 namespace Lucene {
13
16 class LPPAPI MergeScheduler : public LuceneObject {
17 public:
18 virtual ~MergeScheduler();
19
20 LUCENE_CLASS(MergeScheduler);
21
22 public:
24 virtual void merge(const IndexWriterPtr& writer) = 0;
25
27 virtual void close() = 0;
28};
29
30}
31
32#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene::MergeScheduler
IndexWriter uses an instance implementing this interface to execute the merges selected by a MergePol...
Definition MergeScheduler.h:16
Lucene::MergeScheduler::~MergeScheduler
virtual ~MergeScheduler()
Lucene::MergeScheduler::merge
virtual void merge(const IndexWriterPtr &writer)=0
Run the merges provided by IndexWriter#getNextMerge().
Lucene::MergeScheduler::close
virtual void close()=0
Close this MergeScheduler.
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::IndexWriterPtr
boost::shared_ptr< IndexWriter > IndexWriterPtr
Definition LuceneTypes.h:160

clucene.sourceforge.net