Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef TERMVECTORSTERMSWRITER_H
8 #define TERMVECTORSTERMSWRITER_H
37 virtual void flush(MapTermsHashConsumerPerThreadCollectionTermsHashConsumerPerField threadsAndFields,
const SegmentWriteStatePtr& state);
43 void fill(int32_t docID);
Collection< TermVectorsTermsWriterPerDocPtr > docFreeList
Definition: TermVectorsTermsWriter.h:26
TermVectorsTermsWriterPostingList()
This is the base class for an in-memory posting list, keyed by a Token. TermsHash maintains a hash ta...
Definition: RawPostingList.h:19
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition: LuceneTypes.h:123
boost::shared_ptr< PerDocBuffer > PerDocBufferPtr
Definition: LuceneTypes.h:199
boost::shared_ptr< RAMOutputStream > RAMOutputStreamPtr
Definition: LuceneTypes.h:508
Consumer returns this on each doc. This holds any state that must be flushed synchronized "in docID o...
Definition: DocumentsWriter.h:402
boost::shared_ptr< TermVectorsTermsWriterPerDoc > TermVectorsTermsWriterPerDocPtr
Definition: LuceneTypes.h:259
RAMOutputStreamPtr perDocTvf
Definition: TermVectorsTermsWriter.h:66
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
virtual void createPostings(Collection< RawPostingListPtr > postings, int32_t start, int32_t count)
int32_t lastPosition
Definition: TermVectorsTermsWriter.h:90
Definition: TermsHashConsumer.h:14
virtual TermsHashConsumerPerThreadPtr addThread(const TermsHashPerThreadPtr &perThread)
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
virtual void closeDocStore(const SegmentWriteStatePtr &state)
IndexOutputPtr tvx
Definition: TermVectorsTermsWriter.h:28
IndexOutputPtr tvd
Definition: TermVectorsTermsWriter.h:29
int32_t numVectorFields
Definition: TermVectorsTermsWriter.h:67
void finishDocument(const TermVectorsTermsWriterPerDocPtr &perDoc)
void initTermVectorsWriter()
virtual void flush(MapTermsHashConsumerPerThreadCollectionTermsHashConsumerPerField threadsAndFields, const SegmentWriteStatePtr &state)
void addField(int32_t fieldNumber)
TermVectorsWriterPtr termVectorsWriter
Definition: TermVectorsTermsWriter.h:25
virtual ~TermVectorsTermsWriterPerDoc()
TermVectorsTermsWriterPerDoc(const TermVectorsTermsWriterPtr &termsWriter=TermVectorsTermsWriterPtr())
virtual ~TermVectorsTermsWriter()
boost::shared_ptr< TermsHashPerThread > TermsHashPerThreadPtr
Definition: LuceneTypes.h:251
Definition: AbstractAllTermDocs.h:12
PerDocBufferPtr buffer
Definition: TermVectorsTermsWriter.h:65
TermVectorsTermsWriterWeakPtr _termsWriter
Definition: TermVectorsTermsWriter.h:59
Definition: TermVectorsTermsWriter.h:16
int32_t lastOffset
Definition: TermVectorsTermsWriter.h:89
virtual int64_t sizeInBytes()
boost::weak_ptr< TermVectorsTermsWriter > TermVectorsTermsWriterWeakPtr
Definition: LuceneTypes.h:258
IndexOutputPtr tvf
Definition: TermVectorsTermsWriter.h:30
void free(const TermVectorsTermsWriterPerDocPtr &doc)
DocumentsWriterWeakPtr _docWriter
Definition: TermVectorsTermsWriter.h:21
Definition: TermVectorsTermsWriter.h:54
int32_t allocCount
Definition: TermVectorsTermsWriter.h:32
int32_t freq
Definition: TermVectorsTermsWriter.h:85
Collection< int32_t > fieldNumbers
Definition: TermVectorsTermsWriter.h:69
boost::shared_ptr< TermVectorsWriter > TermVectorsWriterPtr
Definition: LuceneTypes.h:263
TermVectorsTermsWriter(const DocumentsWriterPtr &docWriter)
Collection< int64_t > fieldPointers
Definition: TermVectorsTermsWriter.h:70
int32_t freeCount
Definition: TermVectorsTermsWriter.h:27
boost::shared_ptr< TermsHashConsumerPerThread > TermsHashConsumerPerThreadPtr
Definition: LuceneTypes.h:249
Definition: TermVectorsTermsWriter.h:80
void fill(int32_t docID)
Fills in no-term-vectors for all docs we haven't seen since the last doc that had term vectors.
virtual int32_t bytesPerPosting()
boost::shared_ptr< TermVectorsTermsWriter > TermVectorsTermsWriterPtr
Definition: LuceneTypes.h:258
TermVectorsTermsWriterPerDocPtr getPerDoc()
int32_t lastDocID
Definition: TermVectorsTermsWriter.h:31
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
virtual ~TermVectorsTermsWriterPostingList()
clucene.sourceforge.net