Lucene++ - a full-featured, c++ search engine
API Documentation
#include <TermsHashPerField.h>
Public Member Functions | |
| TermsHashPerField (const DocInverterPerFieldPtr &docInverterPerField, const TermsHashPerThreadPtr &perThread, const TermsHashPerThreadPtr &nextPerThread, const FieldInfoPtr &fieldInfo) | |
| virtual | ~TermsHashPerField () |
| virtual String | getClassName () |
| boost::shared_ptr< TermsHashPerField > | shared_from_this () |
| virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed. | |
| void | shrinkHash (int32_t targetSize) |
| void | reset () |
| virtual void | abort () |
| Called on hitting an aborting exception. | |
| void | initReader (const ByteSliceReaderPtr &reader, const RawPostingListPtr &p, int32_t stream) |
| Collection< RawPostingListPtr > | sortPostings () |
| Collapse the hash table and sort in-place. | |
| virtual void | start (const FieldablePtr &field) |
| Called before a field instance is being processed. | |
| virtual bool | start (Collection< FieldablePtr > fields, int32_t count) |
| Called once per field, and is given all Fieldable occurrences for this field in the document. | |
| void | add (int32_t textStart) |
| virtual void | add () |
| Primary entry point (for first TermsHash). | |
| void | writeByte (int32_t stream, int8_t b) |
| void | writeBytes (int32_t stream, const uint8_t *b, int32_t offset, int32_t length) |
| void | writeVInt (int32_t stream, int32_t i) |
| virtual void | finish () |
| Called once per field per document, after all Fieldable occurrences are inverted. | |
| void | rehashPostings (int32_t newSize) |
| Called when postings hash is too small (> 50% occupied) or too large (< 20% occupied). | |
| Public Member Functions inherited from Lucene::InvertedDocConsumerPerField | |
| virtual | ~InvertedDocConsumerPerField () |
| boost::shared_ptr< InvertedDocConsumerPerField > | shared_from_this () |
| Public Member Functions inherited from Lucene::LuceneObject | |
| 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. | |
| Public Member Functions inherited from Lucene::LuceneSync | |
| 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 Public Member Functions inherited from Lucene::InvertedDocConsumerPerField | |
| static String | _getClassName () |
Protected Member Functions | |
| void | compactPostings () |
| bool | postingEquals (const wchar_t *tokenText, int32_t tokenTextLen) |
| Test whether the text for current RawPostingList p equals current tokenText. | |
| Protected Member Functions inherited from Lucene::LuceneObject | |
| LuceneObject () | |
Protected Attributes | |
| int32_t | postingsHashSize |
| int32_t | postingsHashHalfSize |
| int32_t | postingsHashMask |
| Collection< RawPostingListPtr > | postingsHash |
| RawPostingListPtr | p |
| bool | doCall |
| bool | doNextCall |
| Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
| Lucene::TermsHashPerField::TermsHashPerField | ( | const DocInverterPerFieldPtr & | docInverterPerField, |
| const TermsHashPerThreadPtr & | perThread, | ||
| const TermsHashPerThreadPtr & | nextPerThread, | ||
| const FieldInfoPtr & | fieldInfo ) |
References fieldInfo, and nextPerThread.
Referenced by _getClassName().
|
virtual |
|
inlinestatic |
References TermsHashPerField().
|
virtual |
Called on hitting an aborting exception.
Implements Lucene::InvertedDocConsumerPerField.
|
virtual |
Primary entry point (for first TermsHash).
Implements Lucene::InvertedDocConsumerPerField.
| void Lucene::TermsHashPerField::add | ( | int32_t | textStart | ) |
|
protected |
|
virtual |
Called once per field per document, after all Fieldable occurrences are inverted.
Implements Lucene::InvertedDocConsumerPerField.
|
inlinevirtual |
Reimplemented from Lucene::InvertedDocConsumerPerField.
|
virtual |
Called directly after instantiation to create objects that depend on this object being fully constructed.
Reimplemented from Lucene::LuceneObject.
| void Lucene::TermsHashPerField::initReader | ( | const ByteSliceReaderPtr & | reader, |
| const RawPostingListPtr & | p, | ||
| int32_t | stream ) |
References p.
|
protected |
Test whether the text for current RawPostingList p equals current tokenText.
| void Lucene::TermsHashPerField::rehashPostings | ( | int32_t | newSize | ) |
Called when postings hash is too small (> 50% occupied) or too large (< 20% occupied).
| void Lucene::TermsHashPerField::reset | ( | ) |
|
inline |
| void Lucene::TermsHashPerField::shrinkHash | ( | int32_t | targetSize | ) |
| Collection< RawPostingListPtr > Lucene::TermsHashPerField::sortPostings | ( | ) |
Collapse the hash table and sort in-place.
|
virtual |
Called once per field, and is given all Fieldable occurrences for this field in the document.
Implements Lucene::InvertedDocConsumerPerField.
|
virtual |
Called before a field instance is being processed.
Implements Lucene::InvertedDocConsumerPerField.
| void Lucene::TermsHashPerField::writeByte | ( | int32_t | stream, |
| int8_t | b ) |
| void Lucene::TermsHashPerField::writeBytes | ( | int32_t | stream, |
| const uint8_t * | b, | ||
| int32_t | offset, | ||
| int32_t | length ) |
| void Lucene::TermsHashPerField::writeVInt | ( | int32_t | stream, |
| int32_t | i ) |
| DocInverterPerFieldWeakPtr Lucene::TermsHashPerField::_docInverterPerField |
| TermsHashPerThreadWeakPtr Lucene::TermsHashPerField::_perThread |
| ByteBlockPoolPtr Lucene::TermsHashPerField::bytePool |
| CharBlockPoolPtr Lucene::TermsHashPerField::charPool |
| TermsHashConsumerPerFieldPtr Lucene::TermsHashPerField::consumer |
|
protected |
| DocStatePtr Lucene::TermsHashPerField::docState |
|
protected |
| FieldInfoPtr Lucene::TermsHashPerField::fieldInfo |
Referenced by TermsHashPerField().
| FieldInvertStatePtr Lucene::TermsHashPerField::fieldState |
| IntBlockPoolPtr Lucene::TermsHashPerField::intPool |
| IntArray Lucene::TermsHashPerField::intUptos |
| int32_t Lucene::TermsHashPerField::intUptoStart |
| TermsHashPerFieldPtr Lucene::TermsHashPerField::nextPerField |
| TermsHashPerThreadPtr Lucene::TermsHashPerField::nextPerThread |
Referenced by TermsHashPerField().
| int32_t Lucene::TermsHashPerField::numPostingInt |
| int32_t Lucene::TermsHashPerField::numPostings |
|
protected |
Referenced by initReader().
| bool Lucene::TermsHashPerField::postingsCompacted |
|
protected |
|
protected |
|
protected |
|
protected |
| int32_t Lucene::TermsHashPerField::streamCount |
| TermAttributePtr Lucene::TermsHashPerField::termAtt |