Lucene++ - a full-featured, c++ search engine
API Documentation
#include <SegmentTermDocs.h>
Public Member Functions | |
SegmentTermDocs (const SegmentReaderPtr &parent) | |
virtual | ~SegmentTermDocs () |
virtual String | getClassName () |
boost::shared_ptr< SegmentTermDocs > | shared_from_this () |
virtual void | seek (const TermPtr &term) |
Sets this to the data for a term. | |
virtual void | seek (const TermEnumPtr &termEnum) |
Sets this to the data for the current term in a TermEnum . | |
virtual void | seek (const TermInfoPtr &ti, const TermPtr &term) |
virtual void | close () |
Frees associated resources. | |
virtual int32_t | doc () |
Returns the current document number. | |
virtual int32_t | freq () |
Returns the frequency of the term within the current document. | |
virtual bool | next () |
Moves to the next pair in the enumeration. | |
virtual int32_t | read (Collection< int32_t > &docs, Collection< int32_t > &freqs) |
Optimized implementation. | |
virtual bool | skipTo (int32_t target) |
Optimized implementation. | |
virtual IndexInputPtr | freqStream () |
Used for testing. | |
virtual void | freqStream (const IndexInputPtr &freqStream) |
![]() | |
virtual | ~TermPositions () |
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. | |
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. | |
virtual ByteArray | getPayload (ByteArray data, int32_t offset) |
Returns the payload data at the current term position. This is invalid until nextPosition() is called for the first time. This method must not be called more than once after each call of nextPosition() . However, payloads are loaded lazily, so if the payload data for the current position is not needed, this method may not be called at all for performance reasons. | |
virtual bool | isPayloadAvailable () |
Checks if a payload can be loaded at this position. Payloads can only be loaded once per call to nextPosition() . | |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. | |
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
Return clone of this object. | |
virtual int32_t | hashCode () |
Return hash code for this object. | |
virtual bool | equals (const LuceneObjectPtr &other) |
Return whether two objects are equal. | |
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
Compare two objects. | |
virtual String | toString () |
Returns a string representation of the object. | |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. | |
virtual void | unlock () |
Unlock this object. | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. | |
virtual void | notifyAll () |
Notify all threads waiting for signal. | |
Static Public Member Functions | |
static String | _getClassName () |
![]() | |
static String | _getClassName () |
![]() | |
static String | _getClassName () |
Protected Member Functions | |
virtual void | skippingDoc () |
virtual int32_t | readNoTf (Collection< int32_t > &docs, Collection< int32_t > &freqs, int32_t length) |
virtual void | skipProx (int64_t proxPointer, int32_t payloadLength) |
Overridden by SegmentTermPositions to skip in prox stream. | |
![]() | |
TermPositions () | |
![]() | |
TermDocs () | |
![]() | |
LuceneObject () | |
Protected Attributes | |
SegmentReaderWeakPtr | _parent |
SegmentReader * | __parent |
IndexInputPtr | _freqStream |
IndexInput * | __freqStream |
int32_t | count |
int32_t | df |
BitVectorPtr | deletedDocs |
BitVector * | __deletedDocs |
int32_t | _doc |
int32_t | _freq |
int32_t | skipInterval |
int32_t | maxSkipLevels |
DefaultSkipListReaderPtr | skipListReader |
int64_t | freqBasePointer |
int64_t | proxBasePointer |
int64_t | skipPointer |
bool | haveSkipped |
bool | currentFieldStoresPayloads |
bool | currentFieldOmitTermFreqAndPositions |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Lucene::SegmentTermDocs::SegmentTermDocs | ( | const SegmentReaderPtr & | parent | ) |
|
virtual |
|
inlinestatic |
|
virtual |
Frees associated resources.
Implements Lucene::TermDocs.
Reimplemented in Lucene::SegmentTermPositions.
|
virtual |
Returns the current document number.
Implements Lucene::TermDocs.
|
virtual |
Returns the frequency of the term within the current document.
Implements Lucene::TermDocs.
|
virtual |
Used for testing.
|
virtual |
|
inlinevirtual |
Reimplemented from Lucene::TermPositions.
Reimplemented in Lucene::SegmentTermPositions.
|
virtual |
Moves to the next pair in the enumeration.
Implements Lucene::TermDocs.
Reimplemented in Lucene::SegmentTermPositions.
|
virtual |
Optimized implementation.
Implements Lucene::TermDocs.
Reimplemented in Lucene::SegmentTermPositions.
|
protectedvirtual |
|
virtual |
Sets this to the data for the current term in a TermEnum
.
Implements Lucene::TermDocs.
Reimplemented in Lucene::SegmentTermPositions.
|
virtual |
Reimplemented in Lucene::SegmentTermPositions, and Lucene::SegmentTermPositions.
|
virtual |
Sets this to the data for a term.
Implements Lucene::TermDocs.
Reimplemented in Lucene::SegmentTermPositions.
|
inline |
|
protectedvirtual |
Reimplemented in Lucene::SegmentTermPositions.
|
protectedvirtual |
Overridden by SegmentTermPositions to skip in prox stream.
Reimplemented in Lucene::SegmentTermPositions.
|
virtual |
Optimized implementation.
Implements Lucene::TermDocs.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |