Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef FILESWITCHDIRECTORY_H
8 #define FILESWITCHDIRECTORY_H
48 static String getExtension(
const String& name);
57 virtual void touchFile(
const String& name);
60 virtual void deleteFile(
const String& name);
63 virtual int64_t
fileLength(
const String& name);
72 virtual void sync(
const String& name);
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
LPPAPI uint64_t fileModified(const String &path)
Return file last modified date and time.
bool doClose
Definition: FileSwitchDirectory.h:32
A Directory is a flat list of files. Files may be written once, when they are created....
Definition: Directory.h:18
LPPAPI bool touchFile(const String &path)
Set file last modified date and time to now.
DirectoryPtr primaryDir
Definition: FileSwitchDirectory.h:30
DirectoryPtr secondaryDir
Definition: FileSwitchDirectory.h:31
LPPAPI int64_t fileLength(const String &path)
Return file length in bytes.
Definition: AbstractAllTermDocs.h:12
A Directory instance that switches files between two other Directory instances.
Definition: FileSwitchDirectory.h:21
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
LPPAPI bool fileExists(const String &path)
Return true if given file or directory exists.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net