Lucene++ - a full-featured, c++ search engine
API Documentation
Allows you to iterate over the TermPositions for multiple Terms as a single TermPositions. More...
#include <MultipleTermPositions.h>
Public Member Functions | |
MultipleTermPositions (IndexReaderPtr indexReader, Collection< TermPtr > terms) | |
virtual | ~MultipleTermPositions () |
virtual String | getClassName () |
boost::shared_ptr < MultipleTermPositions > | shared_from_this () |
virtual bool | next () |
Moves to the next pair in the enumeration. Returns true if there is such a next pair in the enumeration. More... | |
virtual int32_t | nextPosition () |
Returns next position in the current document. It is an error to call this more than freq() times without calling next(). This is invalid until next() is called for. More... | |
virtual bool | skipTo (int32_t target) |
Skips entries to the first beyond the current whose document number is greater than or equal to target. Returns true if there is such an entry. More... | |
virtual int32_t | doc () |
Returns the current document number. This is invalid until next() is called for the first time. More... | |
virtual int32_t | freq () |
Returns the frequency of the term within the current document. This is invalid until next() is called for the first time. More... | |
virtual void | close () |
Frees associated resources. More... | |
virtual void | seek (TermPtr term) |
Not implemented. More... | |
virtual void | seek (TermEnumPtr termEnum) |
Not implemented. More... | |
virtual int32_t | read (Collection< int32_t > docs, Collection< int32_t > freqs) |
Not implemented. More... | |
virtual ByteArray | getPayload (ByteArray data, int32_t offset) |
Not implemented. More... | |
virtual bool | isPayloadAvailable () |
![]() | |
virtual | ~TermPositions () |
virtual int32_t | getPayloadLength () |
Returns the length of the payload at the current term position. This is invalid until nextPosition() is called for the first time. 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 () |
![]() | |
static String | _getClassName () |
![]() | |
static String | _getClassName () |
Protected Attributes | |
int32_t | _doc |
int32_t | _freq |
TermPositionsQueuePtr | termPositionsQueue |
IntQueuePtr | posList |
Additional Inherited Members | |
![]() | |
TermPositions () | |
![]() | |
LuceneObject () | |
Allows you to iterate over the TermPositions for multiple Terms as a single TermPositions.
Lucene::MultipleTermPositions::MultipleTermPositions | ( | IndexReaderPtr | indexReader, |
Collection< TermPtr > | terms | ||
) |
|
virtual |
|
inlinestatic |
|
virtual |
Frees associated resources.
Implements Lucene::TermDocs.
|
virtual |
Returns the current document number. This is invalid until next() is called for the first time.
Implements Lucene::TermDocs.
|
virtual |
Returns the frequency of the term within the current document. This is invalid until next() is called for the first time.
Implements Lucene::TermDocs.
|
inlinevirtual |
Reimplemented from Lucene::TermPositions.
|
virtual |
Not implemented.
Reimplemented from Lucene::TermPositions.
|
virtual |
Reimplemented from Lucene::TermPositions.
|
virtual |
Moves to the next pair in the enumeration. Returns true if there is such a next pair in the enumeration.
Implements Lucene::TermDocs.
|
virtual |
Returns next position in the current document. It is an error to call this more than freq() times without calling next(). This is invalid until next() is called for.
Reimplemented from Lucene::TermPositions.
|
virtual |
Not implemented.
Implements Lucene::TermDocs.
|
virtual |
Not implemented.
Implements Lucene::TermDocs.
|
virtual |
Not implemented.
Implements Lucene::TermDocs.
|
inline |
|
virtual |
Skips entries to the first beyond the current whose document number is greater than or equal to target. Returns true if there is such an entry.
Implements Lucene::TermDocs.
|
protected |
|
protected |
|
protected |
|
protected |