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


SimpleFSDirectory.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 SIMPLEFSDIRECTORY_H
8 #define SIMPLEFSDIRECTORY_H
9 
10 #include "FSDirectory.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI SimpleFSDirectory : public FSDirectory {
16 public:
20  SimpleFSDirectory(const String& path, const LockFactoryPtr& lockFactory = LockFactoryPtr());
21  virtual ~SimpleFSDirectory();
22 
24 
25 public:
27  virtual IndexOutputPtr createOutput(const String& name);
28 
30  virtual IndexInputPtr openInput(const String& name);
31 
33  virtual IndexInputPtr openInput(const String& name, int32_t bufferSize);
34 };
35 
36 }
37 
38 #endif
Lucene::SimpleFSDirectory::openInput
virtual IndexInputPtr openInput(const String &name, int32_t bufferSize)
Creates an IndexInput for the file with the given name.
Lucene::SimpleFSDirectory::SimpleFSDirectory
SimpleFSDirectory(const String &path, const LockFactoryPtr &lockFactory=LockFactoryPtr())
Create a new SimpleFSDirectory for the named location and NativeFSLockFactory.
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::LockFactoryPtr
boost::shared_ptr< LockFactory > LockFactoryPtr
Definition: LuceneTypes.h:497
Lucene::SimpleFSDirectory::openInput
virtual IndexInputPtr openInput(const String &name)
Returns a stream reading an existing file, with the specified read buffer size. The particular Direct...
Lucene
Definition: AbstractAllTermDocs.h:12
FSDirectory.h
Lucene::IndexInputPtr
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
Lucene::SimpleFSDirectory::~SimpleFSDirectory
virtual ~SimpleFSDirectory()
Lucene::SimpleFSDirectory::createOutput
virtual IndexOutputPtr createOutput(const String &name)
Creates an IndexOutput for the file with the given name.
Lucene::FSDirectory
Base class for Directory implementations that store index files in the file system....
Definition: FSDirectory.h:29
Lucene::SimpleFSDirectory
A straightforward implementation of FSDirectory using std::ofstream and std::ifstream.
Definition: SimpleFSDirectory.h:15
Lucene::IndexOutputPtr
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494

clucene.sourceforge.net