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


FormatPostingsPositionsWriter.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 FORMATPOSTINGSPOSITIONSWRITER_H
8 #define FORMATPOSTINGSPOSITIONSWRITER_H
9 
11 
12 namespace Lucene {
13 
15 public:
18 
20 
21 public:
24 
28 
29  int32_t lastPosition;
30 
31 public:
33  virtual void addPosition(int32_t position, ByteArray payload, int32_t payloadOffset, int32_t payloadLength);
34 
35  void setField(const FieldInfoPtr& fieldInfo);
36 
38  virtual void finish();
39 
40  void close();
41 };
42 
43 }
44 
45 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: FormatPostingsPositionsConsumer.h:14
Definition: FormatPostingsPositionsWriter.h:14
FormatPostingsDocsWriterWeakPtr _parent
Definition: FormatPostingsPositionsWriter.h:19
bool storePayloads
Definition: FormatPostingsPositionsWriter.h:26
virtual void finish()
Called when we are done adding positions & payloads.
int32_t lastPayloadLength
Definition: FormatPostingsPositionsWriter.h:27
void setField(const FieldInfoPtr &fieldInfo)
int32_t lastPosition
Definition: FormatPostingsPositionsWriter.h:29
virtual void addPosition(int32_t position, ByteArray payload, int32_t payloadOffset, int32_t payloadLength)
Add a new position & payload.
FormatPostingsPositionsWriter(const SegmentWriteStatePtr &state, const FormatPostingsDocsWriterPtr &parent)
IndexOutputPtr out
Definition: FormatPostingsPositionsWriter.h:23
bool omitTermFreqAndPositions
Definition: FormatPostingsPositionsWriter.h:25
Definition: AbstractAllTermDocs.h:12
boost::weak_ptr< FormatPostingsDocsWriter > FormatPostingsDocsWriterWeakPtr
Definition: LuceneTypes.h:140
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
boost::shared_ptr< FormatPostingsDocsWriter > FormatPostingsDocsWriterPtr
Definition: LuceneTypes.h:140
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126

clucene.sourceforge.net