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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

FreqProxTermsWriterPerField.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 FREQPROXTERMSWRITERPERFIELD_H
8 #define FREQPROXTERMSWRITERPERFIELD_H
9
10 #include "TermsHashConsumerPerField.h"
11
12 namespace Lucene {
13
14 class FreqProxTermsWriterPerField : public TermsHashConsumerPerField {
15 public:
16 FreqProxTermsWriterPerField(const TermsHashPerFieldPtr& termsHashPerField, const FreqProxTermsWriterPerThreadPtr& perThread, const FieldInfoPtr& fieldInfo);
17 virtual ~FreqProxTermsWriterPerField();
18
19 LUCENE_CLASS(FreqProxTermsWriterPerField);
20
21 public:
22 FreqProxTermsWriterPerThreadWeakPtr _perThread;
23 TermsHashPerFieldWeakPtr _termsHashPerField;
24 FieldInfoPtr fieldInfo;
25 DocStatePtr docState;
26 FieldInvertStatePtr fieldState;
27 bool omitTermFreqAndPositions;
28 PayloadAttributePtr payloadAttribute;
29 bool hasPayloads;
30
31 public:
32 virtual int32_t getStreamCount();
33 virtual void finish();
34 virtual void skippingLongTerm();
35 virtual int32_t compareTo(const LuceneObjectPtr& other);
36 void reset();
37 virtual bool start(Collection<FieldablePtr> fields, int32_t count);
38 virtual void start(const FieldablePtr& field);
39 void writeProx(const FreqProxTermsWriterPostingListPtr& p, int32_t proxCode);
40 virtual void newTerm(const RawPostingListPtr& p);
41 virtual void addTerm(const RawPostingListPtr& p);
42 void abort();
43 };
44
45 }
46
47 #endif
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
Lucene::FreqProxTermsWriterPerField::_termsHashPerField
TermsHashPerFieldWeakPtr _termsHashPerField
Definition: FreqProxTermsWriterPerField.h:23
Lucene::FreqProxTermsWriterPostingListPtr
boost::shared_ptr< FreqProxTermsWriterPostingList > FreqProxTermsWriterPostingListPtr
Definition: LuceneTypes.h:151
Lucene::FreqProxTermsWriterPerField::fieldState
FieldInvertStatePtr fieldState
Definition: FreqProxTermsWriterPerField.h:26
Lucene::FreqProxTermsWriterPerField::omitTermFreqAndPositions
bool omitTermFreqAndPositions
Definition: FreqProxTermsWriterPerField.h:27
Lucene::FreqProxTermsWriterPerField::payloadAttribute
PayloadAttributePtr payloadAttribute
Definition: FreqProxTermsWriterPerField.h:28
TermsHashConsumerPerField.h
Lucene::FreqProxTermsWriterPerField::_perThread
FreqProxTermsWriterPerThreadWeakPtr _perThread
Definition: FreqProxTermsWriterPerField.h:19
Lucene::FreqProxTermsWriterPerField::FreqProxTermsWriterPerField
FreqProxTermsWriterPerField(const TermsHashPerFieldPtr &termsHashPerField, const FreqProxTermsWriterPerThreadPtr &perThread, const FieldInfoPtr &fieldInfo)
Lucene::PayloadAttributePtr
boost::shared_ptr< PayloadAttribute > PayloadAttributePtr
Definition: LuceneTypes.h:41
Lucene::FreqProxTermsWriterPerField::reset
void reset()
Lucene::FreqProxTermsWriterPerField::docState
DocStatePtr docState
Definition: FreqProxTermsWriterPerField.h:25
Lucene::TermsHashPerFieldPtr
boost::shared_ptr< TermsHashPerField > TermsHashPerFieldPtr
Definition: LuceneTypes.h:250
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
Lucene::FreqProxTermsWriterPerField::compareTo
virtual int32_t compareTo(const LuceneObjectPtr &other)
Compare two objects.
Lucene::FreqProxTermsWriterPerField::~FreqProxTermsWriterPerField
virtual ~FreqProxTermsWriterPerField()
Lucene::FreqProxTermsWriterPerField::skippingLongTerm
virtual void skippingLongTerm()
Lucene::FieldInvertStatePtr
boost::shared_ptr< FieldInvertState > FieldInvertStatePtr
Definition: LuceneTypes.h:128
Lucene::FreqProxTermsWriterPerField::addTerm
virtual void addTerm(const RawPostingListPtr &p)
Lucene::FreqProxTermsWriterPerField::finish
virtual void finish()
Lucene::FreqProxTermsWriterPerField::writeProx
void writeProx(const FreqProxTermsWriterPostingListPtr &p, int32_t proxCode)
Lucene::FreqProxTermsWriterPerThreadWeakPtr
boost::weak_ptr< FreqProxTermsWriterPerThread > FreqProxTermsWriterPerThreadWeakPtr
Definition: LuceneTypes.h:150
Lucene::FreqProxTermsWriterPerField
Definition: FreqProxTermsWriterPerField.h:14
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::FreqProxTermsWriterPerField::abort
void abort()
Lucene::FieldablePtr
boost::shared_ptr< Fieldable > FieldablePtr
Definition: LuceneTypes.h:76
Lucene::Collection< FieldablePtr >
Lucene::TermsHashConsumerPerField
Implement this class to plug into the TermsHash processor, which inverts & stores Tokens into a hash ...
Definition: TermsHashConsumerPerField.h:16
Lucene::FreqProxTermsWriterPerField::hasPayloads
bool hasPayloads
Definition: FreqProxTermsWriterPerField.h:29
Lucene::FreqProxTermsWriterPerField::getStreamCount
virtual int32_t getStreamCount()
Lucene::FreqProxTermsWriterPerField::fieldInfo
FieldInfoPtr fieldInfo
Definition: FreqProxTermsWriterPerField.h:24
Lucene::FreqProxTermsWriterPerField::start
virtual bool start(Collection< FieldablePtr > fields, int32_t count)
Lucene::FreqProxTermsWriterPerThreadPtr
boost::shared_ptr< FreqProxTermsWriterPerThread > FreqProxTermsWriterPerThreadPtr
Definition: LuceneTypes.h:150
Lucene::RawPostingListPtr
boost::shared_ptr< RawPostingList > RawPostingListPtr
Definition: LuceneTypes.h:201
Lucene::TermsHashPerFieldWeakPtr
boost::weak_ptr< TermsHashPerField > TermsHashPerFieldWeakPtr
Definition: LuceneTypes.h:250
Lucene::DocStatePtr
boost::shared_ptr< DocState > DocStatePtr
Definition: LuceneTypes.h:122
Lucene::FreqProxTermsWriterPerField::newTerm
virtual void newTerm(const RawPostingListPtr &p)

clucene.sourceforge.net