Lucene++ - a full-featured, c++ search engine
API Documentation
Gathers all Fieldables for a document under the same name, updates FieldInfos, and calls per-field consumers to process field by field. More...
#include <DocFieldProcessorPerThread.h>
Inheritance diagram for Lucene::DocFieldProcessorPerThread:Public Member Functions | |
| DocFieldProcessorPerThread (const DocumentsWriterThreadStatePtr &threadState, const DocFieldProcessorPtr &docFieldProcessor) | |
| virtual | ~DocFieldProcessorPerThread () |
| virtual String | getClassName () |
| boost::shared_ptr< DocFieldProcessorPerThread > | shared_from_this () |
| virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed. | |
| virtual void | abort () |
| Collection< DocFieldConsumerPerFieldPtr > | fields () |
| void | trimFields (const SegmentWriteStatePtr &state) |
| virtual DocWriterPtr | processDocument () |
| Process the document. If there is something for this document to be done in docID order, you should encapsulate that as a DocWriter and return it. DocumentsWriter then calls finish() on this object when it's its turn. | |
| DocFieldProcessorPerThreadPerDocPtr | getPerDoc () |
| void | freePerDoc (const DocFieldProcessorPerThreadPerDocPtr &perDoc) |
Public Member Functions inherited from Lucene::DocConsumerPerThread | |
| virtual | ~DocConsumerPerThread () |
| boost::shared_ptr< DocConsumerPerThread > | 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::DocConsumerPerThread | |
| static String | _getClassName () |
Data Fields | |
| double | docBoost |
| int32_t | fieldGen |
| DocFieldProcessorWeakPtr | _docFieldProcessor |
| FieldInfosPtr | fieldInfos |
| DocFieldConsumerPerThreadPtr | consumer |
| Collection< DocFieldProcessorPerFieldPtr > | _fields |
| int32_t | fieldCount |
| Collection< DocFieldProcessorPerFieldPtr > | fieldHash |
| int32_t | hashMask |
| int32_t | totalFieldCount |
| StoredFieldsWriterPerThreadPtr | fieldsWriter |
| DocStatePtr | docState |
| Collection< DocFieldProcessorPerThreadPerDocPtr > | docFreeList |
| int32_t | freeCount |
| int32_t | allocCount |
Protected Member Functions | |
| void | rehash () |
Protected Member Functions inherited from Lucene::LuceneObject | |
| LuceneObject () | |
Additional Inherited Members | |
Protected Attributes inherited from Lucene::LuceneSync | |
| SynchronizePtr | objectLock |
| LuceneSignalPtr | objectSignal |
Gathers all Fieldables for a document under the same name, updates FieldInfos, and calls per-field consumers to process field by field.
Currently, only a single thread visits the fields, sequentially, for processing.
| Lucene::DocFieldProcessorPerThread::DocFieldProcessorPerThread | ( | const DocumentsWriterThreadStatePtr & | threadState, |
| const DocFieldProcessorPtr & | docFieldProcessor | ||
| ) |
|
virtual |
|
inlinestatic |
|
virtual |
Implements Lucene::DocConsumerPerThread.
| Collection< DocFieldConsumerPerFieldPtr > Lucene::DocFieldProcessorPerThread::fields | ( | ) |
| void Lucene::DocFieldProcessorPerThread::freePerDoc | ( | const DocFieldProcessorPerThreadPerDocPtr & | perDoc | ) |
|
inlinevirtual |
Reimplemented from Lucene::DocConsumerPerThread.
| DocFieldProcessorPerThreadPerDocPtr Lucene::DocFieldProcessorPerThread::getPerDoc | ( | ) |
|
virtual |
Called directly after instantiation to create objects that depend on this object being fully constructed.
Reimplemented from Lucene::LuceneObject.
|
virtual |
Process the document. If there is something for this document to be done in docID order, you should encapsulate that as a DocWriter and return it. DocumentsWriter then calls finish() on this object when it's its turn.
Implements Lucene::DocConsumerPerThread.
|
protected |
|
inline |
| void Lucene::DocFieldProcessorPerThread::trimFields | ( | const SegmentWriteStatePtr & | state | ) |
| DocFieldProcessorWeakPtr Lucene::DocFieldProcessorPerThread::_docFieldProcessor |
| Collection<DocFieldProcessorPerFieldPtr> Lucene::DocFieldProcessorPerThread::_fields |
| int32_t Lucene::DocFieldProcessorPerThread::allocCount |
| DocFieldConsumerPerThreadPtr Lucene::DocFieldProcessorPerThread::consumer |
| double Lucene::DocFieldProcessorPerThread::docBoost |
| Collection<DocFieldProcessorPerThreadPerDocPtr> Lucene::DocFieldProcessorPerThread::docFreeList |
| DocStatePtr Lucene::DocFieldProcessorPerThread::docState |
| int32_t Lucene::DocFieldProcessorPerThread::fieldCount |
| int32_t Lucene::DocFieldProcessorPerThread::fieldGen |
| Collection<DocFieldProcessorPerFieldPtr> Lucene::DocFieldProcessorPerThread::fieldHash |
| FieldInfosPtr Lucene::DocFieldProcessorPerThread::fieldInfos |
| StoredFieldsWriterPerThreadPtr Lucene::DocFieldProcessorPerThread::fieldsWriter |
| int32_t Lucene::DocFieldProcessorPerThread::freeCount |
| int32_t Lucene::DocFieldProcessorPerThread::hashMask |
| int32_t Lucene::DocFieldProcessorPerThread::totalFieldCount |