7#ifndef FREQPROXTERMSWRITER_H
8#define FREQPROXTERMSWRITER_H
29 virtual void flush(MapTermsHashConsumerPerThreadCollectionTermsHashConsumerPerField threadsAndFields,
const SegmentWriteStatePtr& state);
38 static int32_t
compareText(
const wchar_t* text1, int32_t pos1,
const wchar_t* text2, int32_t pos2);
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Definition FreqProxTermsWriter.h:41
int32_t lastPosition
Definition FreqProxTermsWriter.h:52
int32_t lastDocID
Definition FreqProxTermsWriter.h:50
int32_t docFreq
Definition FreqProxTermsWriter.h:49
virtual ~FreqProxTermsWriterPostingList()
FreqProxTermsWriterPostingList()
int32_t lastDocCode
Definition FreqProxTermsWriter.h:51
Definition FreqProxTermsWriter.h:15
ByteArray payloadBuffer
Definition FreqProxTermsWriter.h:22
virtual TermsHashConsumerPerThreadPtr addThread(const TermsHashPerThreadPtr &perThread)
void appendPostings(Collection< FreqProxTermsWriterPerFieldPtr > fields, const FormatPostingsFieldsConsumerPtr &consumer)
Walk through all unique text tokens (Posting instances) found in this field and serialize them into a...
virtual void closeDocStore(const SegmentWriteStatePtr &state)
virtual ~FreqProxTermsWriter()
virtual int32_t bytesPerPosting()
static int32_t compareText(const wchar_t *text1, int32_t pos1, const wchar_t *text2, int32_t pos2)
virtual void createPostings(Collection< RawPostingListPtr > postings, int32_t start, int32_t count)
virtual void flush(MapTermsHashConsumerPerThreadCollectionTermsHashConsumerPerField threadsAndFields, const SegmentWriteStatePtr &state)
This is the base class for an in-memory posting list, keyed by a Token. TermsHash maintains a hash ta...
Definition RawPostingList.h:19
Definition TermsHashConsumer.h:14
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TermsHashConsumerPerThread > TermsHashConsumerPerThreadPtr
Definition LuceneTypes.h:249
boost::shared_ptr< FormatPostingsFieldsConsumer > FormatPostingsFieldsConsumerPtr
Definition LuceneTypes.h:141
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition LuceneTypes.h:222
boost::shared_ptr< TermsHashPerThread > TermsHashPerThreadPtr
Definition LuceneTypes.h:251