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 (DocumentsWriterThreadStatePtr threadState, 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. More... | |
| virtual void | abort () |
| Collection < DocFieldConsumerPerFieldPtr > | fields () |
| void | trimFields (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. More... | |
| DocFieldProcessorPerThreadPerDocPtr | getPerDoc () |
| void | freePerDoc (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 (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... | |
Public Member Functions inherited from Lucene::LuceneSync | |
| 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 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 () |
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 | ( | DocumentsWriterThreadStatePtr | threadState, |
| DocFieldProcessorPtr | docFieldProcessor | ||
| ) |
|
virtual |
|
inlinestatic |
|
virtual |
Implements Lucene::DocConsumerPerThread.
| Collection<DocFieldConsumerPerFieldPtr> Lucene::DocFieldProcessorPerThread::fields | ( | ) |
| void Lucene::DocFieldProcessorPerThread::freePerDoc | ( | 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 | ( | 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 |