Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
44 static const int32_t DEFAULT_READ_CHUNK_SIZE;
67 static uint64_t
fileModified(
const String& directory,
const String& name);
79 void setReadChunkSize(int32_t chunkSize);
83 int32_t getReadChunkSize();
96 virtual void touchFile(
const String& name);
99 virtual void deleteFile(
const String& name);
102 virtual int64_t
fileLength(
const String& name);
106 virtual void sync(
const String& name);
115 virtual IndexInputPtr openInput(
const String& name, int32_t bufferSize);
118 virtual String getLockID();
121 virtual void close();
124 virtual String toString();
128 void initOutput(
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.
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.
String directory
The underlying filesystem directory.
Definition: FSDirectory.h:50
boost::shared_ptr< FSDirectory > FSDirectoryPtr
Definition: LuceneTypes.h:491
LPPAPI int64_t fileLength(const String &path)
Return file length in bytes.
Definition: AbstractAllTermDocs.h:12
bool checked
Definition: FSDirectory.h:47
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
int32_t chunkSize
Definition: FSDirectory.h:53
Base class for Directory implementations that store index files in the file system....
Definition: FSDirectory.h:29
LPPAPI bool fileExists(const String &path)
Return true if given file or directory exists.
clucene.sourceforge.net