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
void setField(const FieldInfoPtr &fieldInfo)
boost::weak_ptr< FormatPostingsDocsWriter > FormatPostingsDocsWriterWeakPtr
Definition: LuceneTypes.h:140
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
IndexOutputPtr out
Definition: FormatPostingsPositionsWriter.h:23
boost::shared_ptr< FormatPostingsDocsWriter > FormatPostingsDocsWriterPtr
Definition: LuceneTypes.h:140
FormatPostingsDocsWriterWeakPtr _parent
Definition: FormatPostingsPositionsWriter.h:19
Definition: FormatPostingsPositionsWriter.h:14
Definition: FormatPostingsPositionsConsumer.h:14
int32_t lastPosition
Definition: FormatPostingsPositionsWriter.h:29
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
virtual void finish()
Called when we are done adding positions & payloads.
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)
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
int32_t lastPayloadLength
Definition: FormatPostingsPositionsWriter.h:27
bool storePayloads
Definition: FormatPostingsPositionsWriter.h:26
bool omitTermFreqAndPositions
Definition: FormatPostingsPositionsWriter.h:25
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222

clucene.sourceforge.net