Lucene++ - a full-featured, c++ search engine
API Documentation
virtual IndexOutputPtr createOutput(const String &name)
Creates a new, empty file in the directory with the given name. Returns a stream writing this file.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
int64_t sizeInBytes()
Return total size in bytes of all files in this directory. This is currently quantized to RAMOutputSt...
virtual void deleteFile(const String &name)
Removes an existing file in the directory.
RAMDirectory(const DirectoryPtr &dir, bool closeDir)
A Directory is a flat list of files. Files may be written once, when they are created....
Definition: Directory.h:18
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
virtual IndexInputPtr openInput(const String &name)
Returns a stream reading an existing file.
boost::weak_ptr< Directory > DirectoryWeakPtr
Definition: LuceneTypes.h:489
virtual void close()
Closes the store.
DirectoryWeakPtr _dirSource
Definition: RAMDirectory.h:44
MapStringRAMFile fileMap
Definition: RAMDirectory.h:41
virtual HashSet< String > listAll()
Returns an array of strings, one for each file in the directory.
RAMDirectory(const DirectoryPtr &dir)
Creates a new RAMDirectory instance from a different Directory implementation. This can be used to lo...
virtual int64_t fileLength(const String &name)
Returns the length of a file in the directory.
Definition: AbstractAllTermDocs.h:12
virtual bool fileExists(const String &name)
Returns true if a file with the given name exists.
virtual void touchFile(const String &name)
Set the modified time of an existing file to now.
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...
Definition: RAMDirectory.h:17
bool closeDir
Definition: RAMDirectory.h:46
bool copyDirectory
Definition: RAMDirectory.h:45
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
virtual uint64_t fileModified(const String &name)
Returns the time the named file was last modified.
RAMDirectory()
Constructs an empty Directory.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net