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

Loading...
Searching...
No Matches
SegmentMergeQueue.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 SEGMENTMERGEQUEUE_H
8#define SEGMENTMERGEQUEUE_H
9
10#include "PriorityQueue.h"
11
12 namespace Lucene {
13
14 class SegmentMergeQueue : public PriorityQueue<SegmentMergeInfoPtr> {
15 public:
16 SegmentMergeQueue(int32_t size);
17 virtual ~SegmentMergeQueue();
18
19 LUCENE_CLASS(SegmentMergeQueue);
20
21 public:
22 void close();
23
24 protected:
25 virtual bool lessThan(const SegmentMergeInfoPtr& first, const SegmentMergeInfoPtr& second);
26};
27
28}
29
30#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
PriorityQueue.h
Lucene::PriorityQueue< SegmentMergeInfoPtr >::size
int32_t size() const
Definition PriorityQueue.h:133
Lucene::PriorityQueue< SegmentMergeInfoPtr >::PriorityQueue
PriorityQueue(int32_t maxSize)
Definition PriorityQueue.h:24
Lucene::SegmentMergeQueue::SegmentMergeQueue
SegmentMergeQueue(int32_t size)
Lucene::SegmentMergeQueue::close
void close()
Lucene::SegmentMergeQueue::~SegmentMergeQueue
virtual ~SegmentMergeQueue()
Lucene::SegmentMergeQueue::lessThan
virtual bool lessThan(const SegmentMergeInfoPtr &first, const SegmentMergeInfoPtr &second)
Determines the ordering of objects in this priority queue. Subclasses must define this one method.
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::SegmentMergeInfoPtr
boost::shared_ptr< SegmentMergeInfo > SegmentMergeInfoPtr
Definition LuceneTypes.h:212

clucene.sourceforge.net