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

ReadOnlySegmentReader.h
Go to the documentation of this file.
1 // 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
12 namespace Lucene {
13
14 class ReadOnlySegmentReader : public SegmentReader {
15 public:
16 virtual ~ReadOnlySegmentReader();
17
18 LUCENE_CLASS(ReadOnlySegmentReader);
19
20 public:
21 static void noWrite();
22
23 virtual void acquireWriteLock();
24 virtual bool isDeleted(int32_t n);
25 };
26
27 }
28
29 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::ReadOnlySegmentReader::noWrite
static void noWrite()
Lucene::ReadOnlySegmentReader
Definition: ReadOnlySegmentReader.h:14
Lucene
Definition: AbstractAllTermDocs.h:12
SegmentReader.h
Lucene::SegmentReader
Definition: SegmentReader.h:15
Lucene::ReadOnlySegmentReader::isDeleted
virtual bool isDeleted(int32_t n)
Returns true if document n has been deleted.
Lucene::ReadOnlySegmentReader::acquireWriteLock
virtual void acquireWriteLock()
Does nothing by default. Subclasses that require a write lock for index modifications must implement ...
Lucene::ReadOnlySegmentReader::~ReadOnlySegmentReader
virtual ~ReadOnlySegmentReader()

clucene.sourceforge.net