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

MMapDirectory.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 MMAPDIRECTORY_H
8 #define MMAPDIRECTORY_H
9
10 #include "FSDirectory.h"
11
12 namespace Lucene {
13
22 class LPPAPI MMapDirectory : public FSDirectory {
23 public:
27 MMapDirectory(const String& path, const LockFactoryPtr& lockFactory = LockFactoryPtr());
28
29 virtual ~MMapDirectory();
30
31 LUCENE_CLASS(MMapDirectory);
32
33 public:
34 using FSDirectory::openInput;
35
37 virtual IndexInputPtr openInput(const String& name, int32_t bufferSize);
38
40 virtual IndexOutputPtr createOutput(const String& name);
41 };
42
43 }
44
45 #endif
FSDirectory.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::FSDirectory
Base class for Directory implementations that store index files in the file system....
Definition: FSDirectory.h:29
Lucene::FSDirectory::openInput
virtual IndexInputPtr openInput(const String &name)
Returns a stream reading an existing file, with the specified read buffer size. The particular Direct...
Lucene::MMapDirectory
File-based Directory implementation that uses mmap for reading, and SimpleFSIndexOutput for writing.
Definition: MMapDirectory.h:22
Lucene::MMapDirectory::~MMapDirectory
virtual ~MMapDirectory()
Lucene::MMapDirectory::MMapDirectory
MMapDirectory(const String &path, const LockFactoryPtr &lockFactory=LockFactoryPtr())
Create a new MMapDirectory for the named location.
Lucene::MMapDirectory::openInput
virtual IndexInputPtr openInput(const String &name, int32_t bufferSize)
Creates an IndexInput for the file with the given name.
Lucene::MMapDirectory::createOutput
virtual IndexOutputPtr createOutput(const String &name)
Creates an IndexOutput for the file with the given name.
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::LockFactoryPtr
boost::shared_ptr< LockFactory > LockFactoryPtr
Definition: LuceneTypes.h:497
Lucene::IndexInputPtr
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
Lucene::IndexOutputPtr
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494

clucene.sourceforge.net