Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
36 virtual bool fileExists(
const String& name) = 0;
42 virtual void touchFile(
const String& name) = 0;
45 virtual void deleteFile(
const String& name) = 0;
48 virtual int64_t
fileLength(
const String& name) = 0;
58 virtual void close() = 0;
62 virtual void sync(
const String& name);
67 virtual IndexInputPtr openInput(
const String& name, int32_t bufferSize);
71 virtual LockPtr makeLock(
const String& name);
76 void clearLock(
const String& name);
91 virtual String getLockID();
93 virtual String toString();
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
LPPAPI uint64_t fileModified(const String &path)
Return file last modified date and time.
boost::shared_ptr< LockFactory > LockFactoryPtr
Definition: LuceneTypes.h:497
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.
boost::shared_ptr< Lock > LockPtr
Definition: LuceneTypes.h:496
LPPAPI int64_t fileLength(const String &path)
Return file length in bytes.
LockFactoryPtr lockFactory
Holds the LockFactory instance (implements locking for this Directory instance).
Definition: Directory.h:29
Definition: AbstractAllTermDocs.h:12
Base class for all Lucene classes.
Definition: LuceneObject.h:31
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