37 virtual void writeBytes(
const uint8_t* b, int32_t offset, int32_t length) = 0;
50 virtual void seek(int64_t pos) = 0;
89 void writeChars(
const String& s, int32_t start, int32_t length);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Abstract base class for output to a file in a Directory. A random-access output stream....
Definition IndexOutput.h:18
void writeString(const String &s)
Writes a string.
virtual void close()=0
Closes this stream to further operations.
void writeVInt(int32_t i)
Writes an int in a variable-length format. Writes between one and five bytes. Smaller values take few...
void writeLong(int64_t i)
Writes a int64 as eight bytes.
void copyBytes(const IndexInputPtr &input, int64_t numBytes)
Copy numBytes bytes from input to ourself.
void writeVLong(int64_t i)
Writes an int64 in a variable-length format. Writes between one and five bytes. Smaller values take f...
virtual void writeBytes(const uint8_t *b, int32_t offset, int32_t length)=0
Writes an array of bytes.
virtual void flush()=0
Forces any buffered output to be written.
void writeBytes(const uint8_t *b, int32_t length)
Writes an array of bytes.
virtual void seek(int64_t pos)=0
Sets current position in this file, where the next write will occur.
virtual void writeByte(uint8_t b)=0
Writes a single byte.
ByteArray copyBuffer
Definition IndexOutput.h:26
void writeStringStringMap(MapStringString map)
Write string map as a series of key/value pairs.
virtual int64_t getFilePointer()=0
Returns the current position in this file, where the next write will occur.
void writeChars(const String &s, int32_t start, int32_t length)
Writes a sub sequence of characters from s as the old format (modified UTF-8 encoded bytes).
static const int32_t COPY_BUFFER_SIZE
Definition IndexOutput.h:25
virtual int64_t length()=0
The number of bytes in the file.
void writeInt(int32_t i)
Writes an int as four bytes.
void setLength(int64_t length)
Set the file length. By default, this method does nothing (it's optional for a Directory to implement...
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< IndexInput > IndexInputPtr
Definition LuceneTypes.h:493