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


FreqProxTermsWriterPerField.h
Go to the documentation of this file.
1
2// 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
11
12namespace Lucene {
13
15public:
18
20
21public:
30
31public:
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
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: FreqProxTermsWriterPerField.h:14
virtual void newTerm(const RawPostingListPtr &p)
TermsHashPerFieldWeakPtr _termsHashPerField
Definition: FreqProxTermsWriterPerField.h:23
FieldInvertStatePtr fieldState
Definition: FreqProxTermsWriterPerField.h:26
virtual bool start(Collection< FieldablePtr > fields, int32_t count)
FreqProxTermsWriterPerField(const TermsHashPerFieldPtr &termsHashPerField, const FreqProxTermsWriterPerThreadPtr &perThread, const FieldInfoPtr &fieldInfo)
FieldInfoPtr fieldInfo
Definition: FreqProxTermsWriterPerField.h:24
virtual void addTerm(const RawPostingListPtr &p)
virtual void start(const FieldablePtr &field)
void writeProx(const FreqProxTermsWriterPostingListPtr &p, int32_t proxCode)
bool hasPayloads
Definition: FreqProxTermsWriterPerField.h:29
virtual int32_t compareTo(const LuceneObjectPtr &other)
Compare two objects.
PayloadAttributePtr payloadAttribute
Definition: FreqProxTermsWriterPerField.h:28
bool omitTermFreqAndPositions
Definition: FreqProxTermsWriterPerField.h:27
FreqProxTermsWriterPerThreadWeakPtr _perThread
Definition: FreqProxTermsWriterPerField.h:22
DocStatePtr docState
Definition: FreqProxTermsWriterPerField.h:25
Implement this class to plug into the TermsHash processor, which inverts & stores Tokens into a hash ...
Definition: TermsHashConsumerPerField.h:16
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< DocState > DocStatePtr
Definition: LuceneTypes.h:122
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< Fieldable > FieldablePtr
Definition: LuceneTypes.h:76
boost::shared_ptr< FieldInvertState > FieldInvertStatePtr
Definition: LuceneTypes.h:128
boost::weak_ptr< TermsHashPerField > TermsHashPerFieldWeakPtr
Definition: LuceneTypes.h:250
boost::shared_ptr< PayloadAttribute > PayloadAttributePtr
Definition: LuceneTypes.h:41
boost::shared_ptr< FreqProxTermsWriterPostingList > FreqProxTermsWriterPostingListPtr
Definition: LuceneTypes.h:151
boost::shared_ptr< TermsHashPerField > TermsHashPerFieldPtr
Definition: LuceneTypes.h:250
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
boost::shared_ptr< FreqProxTermsWriterPerThread > FreqProxTermsWriterPerThreadPtr
Definition: LuceneTypes.h:150
boost::shared_ptr< RawPostingList > RawPostingListPtr
Definition: LuceneTypes.h:201
boost::weak_ptr< FreqProxTermsWriterPerThread > FreqProxTermsWriterPerThreadWeakPtr
Definition: LuceneTypes.h:150

clucene.sourceforge.net