#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Base class for all Lucene classes.
Definition: LuceneObject.h:31
File used as buffer in RAMDirectory.
Definition: RAMFile.h:15
ByteArray addBuffer(int32_t size)
int64_t getLength()
For non-stream access from thread that might be concurrent with writing.
int64_t sizeInBytes
Definition: RAMFile.h:30
int64_t getLastModified()
For non-stream access from thread that might be concurrent with writing.
RAMDirectoryWeakPtr _directory
Definition: RAMFile.h:25
int64_t lastModified
This is publicly modifiable via Directory.touchFile(), so direct access not supported.
Definition: RAMFile.h:33
Collection< ByteArray > buffers
Definition: RAMFile.h:28
virtual ByteArray newBuffer(int32_t size)
Allocate a new buffer. Subclasses can allocate differently.
RAMFile(const RAMDirectoryPtr &directory)
ByteArray getBuffer(int32_t index)
void setLength(int64_t length)
void setLastModified(int64_t lastModified)
Definition: AbstractAllTermDocs.h:12
boost::weak_ptr< RAMDirectory > RAMDirectoryWeakPtr
Definition: LuceneTypes.h:505
boost::shared_ptr< RAMDirectory > RAMDirectoryPtr
Definition: LuceneTypes.h:505