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
MMapDirectory.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 MMAPDIRECTORY_H
8 #define MMAPDIRECTORY_H
9
10 #include "FSDirectory.h"
11
12 namespace Lucene
13 {
22 class LPPAPI MMapDirectory : public FSDirectory
23 {
24 public:
28 MMapDirectory(const String& path, LockFactoryPtr lockFactory = LockFactoryPtr());
29
30 virtual ~MMapDirectory();
31
32 LUCENE_CLASS(MMapDirectory);
33
34 public:
35 using FSDirectory::openInput;
36
38 virtual IndexInputPtr openInput(const String& name, int32_t bufferSize);
39
41 virtual IndexOutputPtr createOutput(const String& name);
42 };
43 }
44
45 #endif

clucene.sourceforge.net