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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ReadOnlyDirectoryReader.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 READONLYDIRECTORYREADER_H
8 #define READONLYDIRECTORYREADER_H
9
10 #include "DirectoryReader.h"
11
12 namespace Lucene
13 {
14 class ReadOnlyDirectoryReader : public DirectoryReader
15 {
16 public:
17 ReadOnlyDirectoryReader(DirectoryPtr directory, SegmentInfosPtr sis, IndexDeletionPolicyPtr deletionPolicy, int32_t termInfosIndexDivisor);
18 ReadOnlyDirectoryReader(DirectoryPtr directory, SegmentInfosPtr infos, Collection<SegmentReaderPtr> oldReaders,
19 Collection<int32_t> oldStarts, MapStringByteArray oldNormsCache, bool doClone, int32_t termInfosIndexDivisor);
20 ReadOnlyDirectoryReader(IndexWriterPtr writer, SegmentInfosPtr infos, int32_t termInfosIndexDivisor);
21 virtual ~ReadOnlyDirectoryReader();
22
23 LUCENE_CLASS(ReadOnlyDirectoryReader);
24
25 public:
28 virtual void acquireWriteLock();
29 };
30 }
31
32 #endif

clucene.sourceforge.net