7#ifndef BUFFEREDINDEXOUTPUT_H
8#define BUFFEREDINDEXOUTPUT_H
39 virtual void writeBytes(
const uint8_t* b, int32_t offset, int32_t length);
49 virtual void flushBuffer(
const uint8_t* b, int32_t offset, int32_t length);
60 virtual void seek(int64_t pos);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Base implementation class for buffered IndexOutput.
Definition BufferedIndexOutput.h:15
virtual void seek(int64_t pos)
Sets current position in this file, where the next write will occur.
virtual void close()
Closes this stream to further operations.
virtual void flush()
Forces any buffered output to be written.
virtual void flushBuffer(const uint8_t *b, int32_t offset, int32_t length)
Implements buffer write. Writes bytes at the current position in the output.
int64_t bufferStart
Definition BufferedIndexOutput.h:26
virtual void writeBytes(const uint8_t *b, int32_t offset, int32_t length)
Writes an array of bytes.
virtual ~BufferedIndexOutput()
int32_t bufferPosition
Definition BufferedIndexOutput.h:27
void flushBuffer(const uint8_t *b, int32_t length)
Implements buffer write. Writes bytes at the current position in the output.
virtual int64_t getFilePointer()
Returns the current position in this file, where the next write will occur.
virtual int64_t length()=0
The number of bytes in the file.
static const int32_t BUFFER_SIZE
Definition BufferedIndexOutput.h:23
virtual void writeByte(uint8_t b)
Writes a single byte.
ByteArray buffer
Definition BufferedIndexOutput.h:28
Abstract base class for output to a file in a Directory. A random-access output stream....
Definition IndexOutput.h:18
Definition AbstractAllTermDocs.h:12