Lucene++ - a full-featured, c++ search engine
API Documentation
This stores a monotonically increasing set of <Term, TermInfo> pairs in a Directory. Pairs are accessed either by Term or by ordinal position the set. More...
#include <TermInfosReader.h>
Public Member Functions | |
TermInfosReader (DirectoryPtr dir, const String &seg, FieldInfosPtr fis, int32_t readBufferSize, int32_t indexDivisor) | |
virtual | ~TermInfosReader () |
virtual String | getClassName () |
boost::shared_ptr < TermInfosReader > | shared_from_this () |
int32_t | getSkipInterval () |
int32_t | getMaxSkipLevels () |
void | close () |
int64_t | size () |
Returns the number of term/value pairs in the set. More... | |
TermInfoPtr | get (TermPtr term) |
Returns the TermInfo for a Term in the set, or null. More... | |
int64_t | getPosition (TermPtr term) |
Returns the position of a Term in the set or -1. More... | |
SegmentTermEnumPtr | terms () |
Returns an enumeration of all the Terms and TermInfos in the set. More... | |
SegmentTermEnumPtr | terms (TermPtr term) |
Returns an enumeration of terms starting at or after the named term. More... | |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. More... | |
virtual LuceneObjectPtr | clone (LuceneObjectPtr other=LuceneObjectPtr()) |
Return clone of this object. More... | |
virtual int32_t | hashCode () |
Return hash code for this object. More... | |
virtual bool | equals (LuceneObjectPtr other) |
Return whether two objects are equal. More... | |
virtual int32_t | compareTo (LuceneObjectPtr other) |
Compare two objects. More... | |
virtual String | toString () |
Returns a string representation of the object. More... | |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. More... | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. More... | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. More... | |
virtual void | unlock () |
Unlock this object. More... | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. More... | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. More... | |
virtual void | notifyAll () |
Notify all threads waiting for signal. More... | |
Static Public Member Functions | |
static String | _getClassName () |
Protected Member Functions | |
TermInfosReaderThreadResourcesPtr | getThreadResources () |
int32_t | getIndexOffset (TermPtr term) |
Returns the offset of the greatest index entry which is less than or equal to term. More... | |
void | seekEnum (SegmentTermEnumPtr enumerator, int32_t indexOffset) |
TermInfoPtr | get (TermPtr term, bool useCache) |
Returns the TermInfo for a Term in the set, or null. More... | |
void | ensureIndexIsRead () |
![]() | |
LuceneObject () | |
Protected Attributes | |
DirectoryPtr | directory |
String | segment |
FieldInfosPtr | fieldInfos |
CloseableThreadLocal < TermInfosReaderThreadResources > | threadResources |
SegmentTermEnumPtr | origEnum |
int64_t | _size |
Collection< TermPtr > | indexTerms |
Collection< TermInfoPtr > | indexInfos |
Collection< int64_t > | indexPointers |
int32_t | totalIndexInterval |
Static Protected Attributes | |
static const int32_t | DEFAULT_CACHE_SIZE |
This stores a monotonically increasing set of <Term, TermInfo> pairs in a Directory. Pairs are accessed either by Term or by ordinal position the set.
Lucene::TermInfosReader::TermInfosReader | ( | DirectoryPtr | dir, |
const String & | seg, | ||
FieldInfosPtr | fis, | ||
int32_t | readBufferSize, | ||
int32_t | indexDivisor | ||
) |
|
virtual |
|
inlinestatic |
void Lucene::TermInfosReader::close | ( | ) |
|
protected |
TermInfoPtr Lucene::TermInfosReader::get | ( | TermPtr | term) |
|
protected |
|
inlinevirtual |
|
protected |
Returns the offset of the greatest index entry which is less than or equal to term.
int32_t Lucene::TermInfosReader::getMaxSkipLevels | ( | ) |
int64_t Lucene::TermInfosReader::getPosition | ( | TermPtr | term) |
Returns the position of a Term in the set or -1.
int32_t Lucene::TermInfosReader::getSkipInterval | ( | ) |
|
protected |
|
protected |
|
inline |
int64_t Lucene::TermInfosReader::size | ( | ) |
Returns the number of term/value pairs in the set.
SegmentTermEnumPtr Lucene::TermInfosReader::terms | ( | ) |
Returns an enumeration of all the Terms and TermInfos in the set.
SegmentTermEnumPtr Lucene::TermInfosReader::terms | ( | TermPtr | term) |
Returns an enumeration of terms starting at or after the named term.
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |