Lucene++ - a full-featured, c++ search engine
API Documentation
Consumes doc & freq, writing them using the current index file format. More...
#include <FormatPostingsDocsWriter.h>
Public Member Functions | |
FormatPostingsDocsWriter (const SegmentWriteStatePtr &state, const FormatPostingsTermsWriterPtr &parent) | |
virtual | ~FormatPostingsDocsWriter () |
virtual String | getClassName () |
boost::shared_ptr< FormatPostingsDocsWriter > | shared_from_this () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. | |
void | setField (const FieldInfoPtr &fieldInfo) |
virtual FormatPostingsPositionsConsumerPtr | addDoc (int32_t docID, int32_t termDocFreq) |
Adds a new doc in this term. If this returns null then we just skip consuming positions/payloads. | |
virtual void | finish () |
Called when we are done adding docs to this term. | |
void | close () |
![]() | |
virtual | ~FormatPostingsDocsConsumer () |
boost::shared_ptr< FormatPostingsDocsConsumer > | shared_from_this () |
![]() | |
virtual | ~LuceneObject () |
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 () |
Data Fields | |
IndexOutputPtr | out |
FormatPostingsTermsWriterWeakPtr | _parent |
SegmentWriteStatePtr | state |
FormatPostingsPositionsWriterPtr | posWriter |
DefaultSkipListWriterPtr | skipListWriter |
int32_t | skipInterval |
int32_t | totalNumDocs |
bool | omitTermFreqAndPositions |
bool | storePayloads |
int64_t | freqStart |
FieldInfoPtr | fieldInfo |
int32_t | lastDocID |
int32_t | df |
TermInfoPtr | termInfo |
UTF8ResultPtr | utf8 |
Additional Inherited Members | |
![]() | |
LuceneObject () | |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Consumes doc & freq, writing them using the current index file format.
Lucene::FormatPostingsDocsWriter::FormatPostingsDocsWriter | ( | const SegmentWriteStatePtr & | state, |
const FormatPostingsTermsWriterPtr & | parent | ||
) |
|
virtual |
|
inlinestatic |
|
virtual |
Adds a new doc in this term. If this returns null then we just skip consuming positions/payloads.
Implements Lucene::FormatPostingsDocsConsumer.
void Lucene::FormatPostingsDocsWriter::close | ( | ) |
|
virtual |
Called when we are done adding docs to this term.
Implements Lucene::FormatPostingsDocsConsumer.
|
inlinevirtual |
Reimplemented from Lucene::FormatPostingsDocsConsumer.
|
virtual |
Called directly after instantiation to create objects that depend on this object being fully constructed.
Reimplemented from Lucene::LuceneObject.
void Lucene::FormatPostingsDocsWriter::setField | ( | const FieldInfoPtr & | fieldInfo | ) |
|
inline |
FormatPostingsTermsWriterWeakPtr Lucene::FormatPostingsDocsWriter::_parent |
int32_t Lucene::FormatPostingsDocsWriter::df |
FieldInfoPtr Lucene::FormatPostingsDocsWriter::fieldInfo |
int64_t Lucene::FormatPostingsDocsWriter::freqStart |
int32_t Lucene::FormatPostingsDocsWriter::lastDocID |
bool Lucene::FormatPostingsDocsWriter::omitTermFreqAndPositions |
IndexOutputPtr Lucene::FormatPostingsDocsWriter::out |
FormatPostingsPositionsWriterPtr Lucene::FormatPostingsDocsWriter::posWriter |
int32_t Lucene::FormatPostingsDocsWriter::skipInterval |
DefaultSkipListWriterPtr Lucene::FormatPostingsDocsWriter::skipListWriter |
SegmentWriteStatePtr Lucene::FormatPostingsDocsWriter::state |
bool Lucene::FormatPostingsDocsWriter::storePayloads |
TermInfoPtr Lucene::FormatPostingsDocsWriter::termInfo |
int32_t Lucene::FormatPostingsDocsWriter::totalNumDocs |
UTF8ResultPtr Lucene::FormatPostingsDocsWriter::utf8 |