CLucene - a full-featured, c++ search engine
API Documentation
#include <RAMDirectory.h>
Public Member Functions | |
| RAMIndexOutput (RAMFile *f) | |
| RAMIndexOutput () | |
| virtual | ~RAMIndexOutput () |
| Construct an empty output buffer. | |
| virtual void | close () |
| Closes this stream to further operations. | |
| virtual void | seek (const int64_t pos) |
| Sets current position in this file, where the next write will occur. | |
| int64_t | length () |
| The number of bytes in the file. | |
| void | reset () |
| Resets this to an empty buffer. | |
| void | writeTo (IndexOutput *output) |
| Copy the current contents of this buffer to the named output. | |
Protected Member Functions | |
| void | flushBuffer (const uint8_t *src, const int32_t len) |
| Expert: implements buffer write. | |
Protected Attributes | |
| RAMFile * | file |
| int32_t | pointer |
| bool | deleteFile |
| lucene::store::RAMIndexOutput::RAMIndexOutput | ( | RAMFile * | f | ) |
| lucene::store::RAMIndexOutput::RAMIndexOutput | ( | ) |
| virtual lucene::store::RAMIndexOutput::~RAMIndexOutput | ( | ) | [virtual] |
Construct an empty output buffer.
| virtual void lucene::store::RAMIndexOutput::close | ( | ) | [virtual] |
Closes this stream to further operations.
Reimplemented from lucene::store::BufferedIndexOutput.
| void lucene::store::RAMIndexOutput::flushBuffer | ( | const uint8_t * | b, | |
| const int32_t | len | |||
| ) | [protected, virtual] |
Expert: implements buffer write.
Writes bytes at the current position in the output.
| b | the bytes to write | |
| len | the number of bytes to write |
Implements lucene::store::BufferedIndexOutput.
| int64_t lucene::store::RAMIndexOutput::length | ( | ) | [virtual] |
The number of bytes in the file.
Implements lucene::store::BufferedIndexOutput.
| void lucene::store::RAMIndexOutput::reset | ( | ) |
Resets this to an empty buffer.
| virtual void lucene::store::RAMIndexOutput::seek | ( | const int64_t | pos | ) | [virtual] |
Sets current position in this file, where the next write will occur.
Reimplemented from lucene::store::BufferedIndexOutput.
| void lucene::store::RAMIndexOutput::writeTo | ( | IndexOutput * | output | ) |
Copy the current contents of this buffer to the named output.
bool lucene::store::RAMIndexOutput::deleteFile [protected] |
RAMFile* lucene::store::RAMIndexOutput::file [protected] |
int32_t lucene::store::RAMIndexOutput::pointer [protected] |