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

Loading...
Searching...
No Matches
TermVectorsTermsWriterPerField.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 TERMVECTORSTERMSWRITERPERFIELD_H
8#define TERMVECTORSTERMSWRITERPERFIELD_H
9
10#include "TermsHashConsumerPerField.h"
11
12 namespace Lucene {
13
14 class TermVectorsTermsWriterPerField : public TermsHashConsumerPerField {
15 public:
16 TermVectorsTermsWriterPerField(const TermsHashPerFieldPtr& termsHashPerField, const TermVectorsTermsWriterPerThreadPtr& perThread, const FieldInfoPtr& fieldInfo);
17 virtual ~TermVectorsTermsWriterPerField();
18
19 LUCENE_CLASS(TermVectorsTermsWriterPerField);
20
21 public:
22 TermVectorsTermsWriterPerThreadWeakPtr _perThread;
23 TermsHashPerFieldWeakPtr _termsHashPerField;
24 TermVectorsTermsWriterWeakPtr _termsWriter;
25 FieldInfoPtr fieldInfo;
26 DocStateWeakPtr _docState;
27 FieldInvertStateWeakPtr _fieldState;
28
29 bool doVectors;
30 bool doVectorPositions;
31 bool doVectorOffsets;
32
33 int32_t maxNumPostings;
34 OffsetAttributePtr offsetAttribute;
35
36 public:
37 virtual int32_t getStreamCount();
38 virtual bool start(Collection<FieldablePtr> fields, int32_t count);
39 virtual void abort();
40
43 virtual void finish();
44
45 void shrinkHash();
46
47 virtual void start(const FieldablePtr& field);
48 virtual void newTerm(const RawPostingListPtr& p0);
49 virtual void addTerm(const RawPostingListPtr& p0);
50 virtual void skippingLongTerm();
51};
52
53}
54
55#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
TermsHashConsumerPerField.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Lucene::TermVectorsTermsWriterPerField::getStreamCount
virtual int32_t getStreamCount()
Lucene::TermVectorsTermsWriterPerField::_docState
DocStateWeakPtr _docState
Definition TermVectorsTermsWriterPerField.h:26
Lucene::TermVectorsTermsWriterPerField::newTerm
virtual void newTerm(const RawPostingListPtr &p0)
Lucene::TermVectorsTermsWriterPerField::TermVectorsTermsWriterPerField
TermVectorsTermsWriterPerField(const TermsHashPerFieldPtr &termsHashPerField, const TermVectorsTermsWriterPerThreadPtr &perThread, const FieldInfoPtr &fieldInfo)
Lucene::TermVectorsTermsWriterPerField::_termsWriter
TermVectorsTermsWriterWeakPtr _termsWriter
Definition TermVectorsTermsWriterPerField.h:24
Lucene::TermVectorsTermsWriterPerField::_fieldState
FieldInvertStateWeakPtr _fieldState
Definition TermVectorsTermsWriterPerField.h:27
Lucene::TermVectorsTermsWriterPerField::finish
virtual void finish()
Called once per field per document if term vectors are enabled, to write the vectors to RAMOutputStre...
Lucene::TermVectorsTermsWriterPerField::maxNumPostings
int32_t maxNumPostings
Definition TermVectorsTermsWriterPerField.h:33
Lucene::TermVectorsTermsWriterPerField::offsetAttribute
OffsetAttributePtr offsetAttribute
Definition TermVectorsTermsWriterPerField.h:34
Lucene::TermVectorsTermsWriterPerField::skippingLongTerm
virtual void skippingLongTerm()
Lucene::TermVectorsTermsWriterPerField::_perThread
TermVectorsTermsWriterPerThreadWeakPtr _perThread
Definition TermVectorsTermsWriterPerField.h:22
Lucene::TermVectorsTermsWriterPerField::shrinkHash
void shrinkHash()
Lucene::TermVectorsTermsWriterPerField::fieldInfo
FieldInfoPtr fieldInfo
Definition TermVectorsTermsWriterPerField.h:25
Lucene::TermVectorsTermsWriterPerField::addTerm
virtual void addTerm(const RawPostingListPtr &p0)
Lucene::TermVectorsTermsWriterPerField::doVectorOffsets
bool doVectorOffsets
Definition TermVectorsTermsWriterPerField.h:31
Lucene::TermVectorsTermsWriterPerField::abort
virtual void abort()
Lucene::TermVectorsTermsWriterPerField::~TermVectorsTermsWriterPerField
virtual ~TermVectorsTermsWriterPerField()
Lucene::TermVectorsTermsWriterPerField::_termsHashPerField
TermsHashPerFieldWeakPtr _termsHashPerField
Definition TermVectorsTermsWriterPerField.h:23
Lucene::TermVectorsTermsWriterPerField::start
virtual bool start(Collection< FieldablePtr > fields, int32_t count)
Lucene::TermVectorsTermsWriterPerField::start
virtual void start(const FieldablePtr &field)
Lucene::TermVectorsTermsWriterPerField::doVectors
bool doVectors
Definition TermVectorsTermsWriterPerField.h:29
Lucene::TermVectorsTermsWriterPerField::doVectorPositions
bool doVectorPositions
Definition TermVectorsTermsWriterPerField.h:30
Lucene::TermsHashConsumerPerField
Implement this class to plug into the TermsHash processor, which inverts & stores Tokens into a hash ...
Definition TermsHashConsumerPerField.h:16
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::TermVectorsTermsWriterWeakPtr
boost::weak_ptr< TermVectorsTermsWriter > TermVectorsTermsWriterWeakPtr
Definition LuceneTypes.h:258
Lucene::TermsHashPerFieldPtr
boost::shared_ptr< TermsHashPerField > TermsHashPerFieldPtr
Definition LuceneTypes.h:250
Lucene::TermVectorsTermsWriterPerThreadPtr
boost::shared_ptr< TermVectorsTermsWriterPerThread > TermVectorsTermsWriterPerThreadPtr
Definition LuceneTypes.h:261
Lucene::DocStateWeakPtr
boost::weak_ptr< DocState > DocStateWeakPtr
Definition LuceneTypes.h:122
Lucene::FieldablePtr
boost::shared_ptr< Fieldable > FieldablePtr
Definition LuceneTypes.h:76
Lucene::TermVectorsTermsWriterPerThreadWeakPtr
boost::weak_ptr< TermVectorsTermsWriterPerThread > TermVectorsTermsWriterPerThreadWeakPtr
Definition LuceneTypes.h:261
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition LuceneTypes.h:126
Lucene::TermsHashPerFieldWeakPtr
boost::weak_ptr< TermsHashPerField > TermsHashPerFieldWeakPtr
Definition LuceneTypes.h:250
Lucene::FieldInvertStateWeakPtr
boost::weak_ptr< FieldInvertState > FieldInvertStateWeakPtr
Definition LuceneTypes.h:128
Lucene::OffsetAttributePtr
boost::shared_ptr< OffsetAttribute > OffsetAttributePtr
Definition LuceneTypes.h:40
Lucene::RawPostingListPtr
boost::shared_ptr< RawPostingList > RawPostingListPtr
Definition LuceneTypes.h:201

clucene.sourceforge.net