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

Loading...
Searching...
No Matches
TermVectorsTermsWriterPerThread.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 TERMVECTORSTERMSWRITERPERTHREAD_H
8#define TERMVECTORSTERMSWRITERPERTHREAD_H
9
10#include "TermsHashConsumerPerThread.h"
11
12 namespace Lucene {
13
14 class TermVectorsTermsWriterPerThread : public TermsHashConsumerPerThread {
15 public:
16 TermVectorsTermsWriterPerThread(const TermsHashPerThreadPtr& termsHashPerThread, const TermVectorsTermsWriterPtr& termsWriter);
17 virtual ~TermVectorsTermsWriterPerThread();
18
19 LUCENE_CLASS(TermVectorsTermsWriterPerThread);
20
21 public:
22 TermVectorsTermsWriterWeakPtr _termsWriter;
23 TermsHashPerThreadWeakPtr _termsHashPerThread;
24 DocStateWeakPtr _docState;
25
26 TermVectorsTermsWriterPerDocPtr doc;
27 ByteSliceReaderPtr vectorSliceReader;
28 Collection<UTF8ResultPtr> utf8Results;
29 String lastVectorFieldName;
30
31 public:
32 virtual void startDocument();
33 virtual DocWriterPtr finishDocument();
34 virtual TermsHashConsumerPerFieldPtr addField(const TermsHashPerFieldPtr& termsHashPerField, const FieldInfoPtr& fieldInfo);
35 virtual void abort();
36
38 bool clearLastVectorFieldName();
39 bool vectorFieldsInOrder(const FieldInfoPtr& fi);
40};
41
42}
43
44#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
TermsHashConsumerPerThread.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Lucene::TermVectorsTermsWriterPerThread
Definition TermVectorsTermsWriterPerThread.h:14
Lucene::TermVectorsTermsWriterPerThread::_termsWriter
TermVectorsTermsWriterWeakPtr _termsWriter
Definition TermVectorsTermsWriterPerThread.h:22
Lucene::TermVectorsTermsWriterPerThread::finishDocument
virtual DocWriterPtr finishDocument()
Lucene::TermVectorsTermsWriterPerThread::addField
virtual TermsHashConsumerPerFieldPtr addField(const TermsHashPerFieldPtr &termsHashPerField, const FieldInfoPtr &fieldInfo)
Lucene::TermVectorsTermsWriterPerThread::doc
TermVectorsTermsWriterPerDocPtr doc
Definition TermVectorsTermsWriterPerThread.h:26
Lucene::TermVectorsTermsWriterPerThread::~TermVectorsTermsWriterPerThread
virtual ~TermVectorsTermsWriterPerThread()
Lucene::TermVectorsTermsWriterPerThread::clearLastVectorFieldName
bool clearLastVectorFieldName()
Called only by assert.
Lucene::TermVectorsTermsWriterPerThread::utf8Results
Collection< UTF8ResultPtr > utf8Results
Definition TermVectorsTermsWriterPerThread.h:28
Lucene::TermVectorsTermsWriterPerThread::TermVectorsTermsWriterPerThread
TermVectorsTermsWriterPerThread(const TermsHashPerThreadPtr &termsHashPerThread, const TermVectorsTermsWriterPtr &termsWriter)
Lucene::TermVectorsTermsWriterPerThread::startDocument
virtual void startDocument()
Lucene::TermVectorsTermsWriterPerThread::lastVectorFieldName
String lastVectorFieldName
Definition TermVectorsTermsWriterPerThread.h:29
Lucene::TermVectorsTermsWriterPerThread::vectorFieldsInOrder
bool vectorFieldsInOrder(const FieldInfoPtr &fi)
Lucene::TermVectorsTermsWriterPerThread::_termsHashPerThread
TermsHashPerThreadWeakPtr _termsHashPerThread
Definition TermVectorsTermsWriterPerThread.h:23
Lucene::TermVectorsTermsWriterPerThread::_docState
DocStateWeakPtr _docState
Definition TermVectorsTermsWriterPerThread.h:24
Lucene::TermVectorsTermsWriterPerThread::vectorSliceReader
ByteSliceReaderPtr vectorSliceReader
Definition TermVectorsTermsWriterPerThread.h:27
Lucene::TermVectorsTermsWriterPerThread::abort
virtual void abort()
Lucene::TermsHashConsumerPerThread
Definition TermsHashConsumerPerThread.h:14
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::TermVectorsTermsWriterWeakPtr
boost::weak_ptr< TermVectorsTermsWriter > TermVectorsTermsWriterWeakPtr
Definition LuceneTypes.h:258
Lucene::TermsHashConsumerPerFieldPtr
boost::shared_ptr< TermsHashConsumerPerField > TermsHashConsumerPerFieldPtr
Definition LuceneTypes.h:248
Lucene::TermVectorsTermsWriterPtr
boost::shared_ptr< TermVectorsTermsWriter > TermVectorsTermsWriterPtr
Definition LuceneTypes.h:258
Lucene::ByteSliceReaderPtr
boost::shared_ptr< ByteSliceReader > ByteSliceReaderPtr
Definition LuceneTypes.h:91
Lucene::TermVectorsTermsWriterPerDocPtr
boost::shared_ptr< TermVectorsTermsWriterPerDoc > TermVectorsTermsWriterPerDocPtr
Definition LuceneTypes.h:259
Lucene::TermsHashPerThreadWeakPtr
boost::weak_ptr< TermsHashPerThread > TermsHashPerThreadWeakPtr
Definition LuceneTypes.h:251
Lucene::TermsHashPerThreadPtr
boost::shared_ptr< TermsHashPerThread > TermsHashPerThreadPtr
Definition LuceneTypes.h:251
Lucene::DocStateWeakPtr
boost::weak_ptr< DocState > DocStateWeakPtr
Definition LuceneTypes.h:122
Lucene::DocWriterPtr
boost::shared_ptr< DocWriter > DocWriterPtr
Definition LuceneTypes.h:125
Lucene::TermsHashPerFieldPtr
boost::shared_ptr< TermsHashPerField > TermsHashPerFieldPtr
Definition LuceneTypes.h:250
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition LuceneTypes.h:126

clucene.sourceforge.net