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


Loading...
Searching...
No Matches
ReadOnlySegmentReader.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 READONLYSEGMENTREADER_H
8#define READONLYSEGMENTREADER_H
9
10#include "SegmentReader.h"
11
12namespace Lucene {
13
14class LPPAPI ReadOnlySegmentReader : public SegmentReader {
15public:
17
19
20public:
21 static void noWrite();
22
23 virtual void acquireWriteLock();
24 virtual bool isDeleted(int32_t n);
25};
26
27}
28
29#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Definition ReadOnlySegmentReader.h:14
virtual bool isDeleted(int32_t n)
Returns true if document n has been deleted.
virtual void acquireWriteLock()
Does nothing by default. Subclasses that require a write lock for index modifications must implement ...
Definition SegmentReader.h:15
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net