CLucene - a full-featured, c++ search engine
API Documentation
#include <IndexInput.h>
Public Member Functions | |
virtual | ~IndexInput () |
virtual IndexInput * | clone () const =0 |
virtual uint8_t | readByte ()=0 |
Reads and returns a single byte. | |
virtual void | readBytes (uint8_t *b, const int32_t len)=0 |
Reads a specified number of bytes into an array at the specified offset. | |
int32_t | readInt () |
Reads four bytes and returns an int. | |
virtual int32_t | readVInt () |
Reads an int stored in variable-length format. | |
int64_t | readLong () |
Reads eight bytes and returns a long. | |
int64_t | readVLong () |
Reads a long stored in variable-length format. | |
int32_t | readString (TCHAR *buffer, const int32_t maxlength) |
Reads a string. | |
TCHAR * | readString () |
Reads a string. | |
void | readChars (TCHAR *buffer, const int32_t start, const int32_t len) |
Reads UTF-8 encoded characters into an array. | |
virtual void | close ()=0 |
Closes the stream to futher operations. | |
virtual int64_t | getFilePointer () const =0 |
Returns the current position in this file, where the next read will occur. | |
virtual void | seek (const int64_t pos)=0 |
Sets current position in this file, where the next read will occur. | |
virtual int64_t | length () const =0 |
The number of bytes in the file. | |
virtual const char * | getDirectoryType () const =0 |
virtual const char * | getObjectName ()=0 |
Protected Member Functions | |
IndexInput () | |
IndexInput (const IndexInput &clone) |
A random-access input stream. Used for all Lucene index input operations.
lucene::store::IndexInput::IndexInput | ( | ) | [protected] |
lucene::store::IndexInput::IndexInput | ( | const IndexInput & | clone | ) | [protected] |
virtual lucene::store::IndexInput::~IndexInput | ( | ) | [inline, virtual] |
virtual IndexInput* lucene::store::IndexInput::clone | ( | ) | const [pure virtual] |
Implemented in lucene::store::BufferedIndexInput.
virtual uint8_t lucene::store::IndexInput::readByte | ( | ) | [pure virtual] |
Reads and returns a single byte.
Implemented in lucene::store::BufferedIndexInput.
virtual void lucene::store::IndexInput::readBytes | ( | uint8_t * | b, | |
const int32_t | len | |||
) | [pure virtual] |
Reads a specified number of bytes into an array at the specified offset.
b | the array to read bytes into | |
offset | the offset in the array to start storing bytes | |
len | the number of bytes to read |
Implemented in lucene::store::BufferedIndexInput.
int32_t lucene::store::IndexInput::readInt | ( | ) |
virtual int32_t lucene::store::IndexInput::readVInt | ( | ) | [virtual] |
Reads an int stored in variable-length format.
Reads between one and five bytes. Smaller values take fewer bytes. Negative numbers are not supported.
int64_t lucene::store::IndexInput::readLong | ( | ) |
Reads eight bytes and returns a long.
int64_t lucene::store::IndexInput::readVLong | ( | ) |
Reads a long stored in variable-length format.
Reads between one and nine bytes. Smaller values take fewer bytes. Negative numbers are not supported.
int32_t lucene::store::IndexInput::readString | ( | TCHAR * | buffer, | |
const int32_t | maxlength | |||
) |
Reads a string.
TCHAR* lucene::store::IndexInput::readString | ( | ) |
Reads a string.
void lucene::store::IndexInput::readChars | ( | TCHAR * | buffer, | |
const int32_t | start, | |||
const int32_t | len | |||
) |
Reads UTF-8 encoded characters into an array.
buffer | the array to read characters into | |
start | the offset in the array to start storing characters | |
length | the number of characters to read |
virtual void lucene::store::IndexInput::close | ( | ) | [pure virtual] |
virtual int64_t lucene::store::IndexInput::getFilePointer | ( | ) | const [pure virtual] |
Returns the current position in this file, where the next read will occur.
Implemented in lucene::store::BufferedIndexInput.
virtual void lucene::store::IndexInput::seek | ( | const int64_t | pos | ) | [pure virtual] |
Sets current position in this file, where the next read will occur.
Implemented in lucene::store::BufferedIndexInput.
virtual int64_t lucene::store::IndexInput::length | ( | ) | const [pure virtual] |
The number of bytes in the file.
virtual const char* lucene::store::IndexInput::getDirectoryType | ( | ) | const [pure virtual] |
virtual const char* lucene::store::IndexInput::getObjectName | ( | ) | [pure virtual] |
Implemented in lucene::store::BufferedIndexInput.