CLucene - a full-featured, c++ search engine
API Documentation


lucene::store::RAMIndexOutput Class Reference

#include <RAMDirectory.h>

Inheritance diagram for lucene::store::RAMIndexOutput:
lucene::store::BufferedIndexOutput lucene::store::IndexOutput lucene::debug::LuceneBase

List of all members.

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

RAMFilefile
int32_t pointer
bool deleteFile

Constructor & Destructor Documentation

lucene::store::RAMIndexOutput::RAMIndexOutput ( RAMFile f  ) 
lucene::store::RAMIndexOutput::RAMIndexOutput (  ) 
virtual lucene::store::RAMIndexOutput::~RAMIndexOutput (  )  [virtual]

Construct an empty output buffer.


Member Function Documentation

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.

Parameters:
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.

See also:
getFilePointer()

Reimplemented from lucene::store::BufferedIndexOutput.

void lucene::store::RAMIndexOutput::writeTo ( IndexOutput output  ) 

Copy the current contents of this buffer to the named output.


Member Data Documentation


The documentation for this class was generated from the following file:

clucene.sourceforge.net