Lucene++ - a full-featured, c++ search engine
API Documentation


FreqProxFieldMergeState.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef FREQPROXFIELDMERGESTATE_H
8 #define FREQPROXFIELDMERGESTATE_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
16 public:
19 
21 
22 public:
24  int32_t numPostings;
27 
29  CharArray text;
30  int32_t textOffset;
31 
34 
35  int32_t docID;
36  int32_t termFreq;
37 
38 protected:
39  int32_t postingUpto;
40 
41 public:
42  bool nextTerm();
43  bool nextDoc();
44 };
45 
46 }
47 
48 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Used by DocumentsWriter to merge the postings from multiple ThreadStates when creating a segment.
Definition: FreqProxFieldMergeState.h:15
int32_t termFreq
Definition: FreqProxFieldMergeState.h:36
int32_t postingUpto
Definition: FreqProxFieldMergeState.h:39
CharBlockPoolPtr charPool
Definition: FreqProxFieldMergeState.h:25
ByteSliceReaderPtr prox
Definition: FreqProxFieldMergeState.h:33
int32_t textOffset
Definition: FreqProxFieldMergeState.h:30
int32_t numPostings
Definition: FreqProxFieldMergeState.h:24
FreqProxFieldMergeState(const FreqProxTermsWriterPerFieldPtr &field)
int32_t docID
Definition: FreqProxFieldMergeState.h:35
FreqProxTermsWriterPerFieldPtr field
Definition: FreqProxFieldMergeState.h:20
CharArray text
Definition: FreqProxFieldMergeState.h:29
ByteSliceReaderPtr freq
Definition: FreqProxFieldMergeState.h:32
Collection< RawPostingListPtr > postings
Definition: FreqProxFieldMergeState.h:26
FreqProxTermsWriterPostingListPtr p
Definition: FreqProxFieldMergeState.h:28
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< ByteSliceReader > ByteSliceReaderPtr
Definition: LuceneTypes.h:91
boost::shared_ptr< CharBlockPool > CharBlockPoolPtr
Definition: LuceneTypes.h:93
boost::shared_ptr< FreqProxTermsWriterPostingList > FreqProxTermsWriterPostingListPtr
Definition: LuceneTypes.h:151
boost::shared_ptr< FreqProxTermsWriterPerField > FreqProxTermsWriterPerFieldPtr
Definition: LuceneTypes.h:149

clucene.sourceforge.net