49 virtual void initialize();
61 virtual void touchFile(
const String& name);
64 virtual int64_t
fileLength(
const String& name);
68 int64_t sizeInBytes();
71 virtual void deleteFile(
const String& name);
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
A memory-resident Directory implementation. Locking implementation is by default the SingleInstanceLo...
Definition: RAMDirectory.h:17
boost::weak_ptr< Directory > DirectoryWeakPtr
Definition: LuceneTypes.h:489
DirectoryWeakPtr _dirSource
Definition: RAMDirectory.h:44
A Directory is a flat list of files. Files may be written once, when they are created. Once a file is created it may only be opened for read, or deleted. Random access is permitted both when reading and writing. Directory locking is implemented by an instance of LockFactory, and can be changed for each Directory instance using setLockFactory.
Definition: Directory.h:18
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
LPPAPI bool fileExists(const String &path)
Return true if given file or directory exists.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
bool closeDir
Definition: RAMDirectory.h:46
bool copyDirectory
Definition: RAMDirectory.h:45
LPPAPI int64_t fileLength(const String &path)
Return file length in bytes.
MapStringRAMFile fileMap
Definition: RAMDirectory.h:41
LPPAPI bool touchFile(const String &path)
Set file last modified date and time to now.
LPPAPI uint64_t fileModified(const String &path)
Return file last modified date and time.