Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef RAMOUTPUTSTREAM_H
8 #define RAMOUTPUTSTREAM_H
47 virtual void seek(int64_t pos);
int64_t sizeInBytes()
Returns byte usage of all buffers.
virtual int64_t getFilePointer()
Returns the current position in this file, where the next write will occur.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
ByteArray currentBuffer
Definition: RAMOutputStream.h:29
int32_t bufferLength
Definition: RAMOutputStream.h:33
void switchCurrentBuffer()
RAMOutputStream()
Construct an empty output buffer.
virtual ~RAMOutputStream()
A memory-resident IndexOutput implementation.
Definition: RAMOutputStream.h:15
int32_t bufferPosition
Definition: RAMOutputStream.h:31
boost::shared_ptr< RAMFile > RAMFilePtr
Definition: LuceneTypes.h:506
void reset()
Resets this to an empty file.
int64_t bufferStart
Definition: RAMOutputStream.h:32
virtual int64_t length()
The number of bytes in the file.
Definition: AbstractAllTermDocs.h:12
virtual void writeBytes(const uint8_t *b, int32_t offset, int32_t length)
Writes an array of bytes.
RAMOutputStream(const RAMFilePtr &f)
static const int32_t BUFFER_SIZE
Definition: RAMOutputStream.h:22
void writeTo(const IndexOutputPtr &out)
Copy the current contents of this buffer to the named output.
virtual void seek(int64_t pos)
Sets current position in this file, where the next write will occur.
Abstract base class for output to a file in a Directory. A random-access output stream....
Definition: IndexOutput.h:18
int32_t currentBufferIndex
Definition: RAMOutputStream.h:30
RAMFilePtr file
Definition: RAMOutputStream.h:28
virtual void writeByte(uint8_t b)
Writes a single byte.
virtual void flush()
Forces any buffered output to be written.
virtual void close()
Closes this stream to further operations.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
clucene.sourceforge.net