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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FormatPostingsPositionsWriter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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
10 #include "FormatPostingsPositionsConsumer.h"
11
12 namespace Lucene
13 {
14 class FormatPostingsPositionsWriter : public FormatPostingsPositionsConsumer
15 {
16 public:
17 FormatPostingsPositionsWriter(SegmentWriteStatePtr state, FormatPostingsDocsWriterPtr parent);
18 virtual ~FormatPostingsPositionsWriter();
19
20 LUCENE_CLASS(FormatPostingsPositionsWriter);
21
22 public:
23 FormatPostingsDocsWriterWeakPtr _parent;
24 IndexOutputPtr out;
25
26 bool omitTermFreqAndPositions;
27 bool storePayloads;
28 int32_t lastPayloadLength;
29
30 int32_t lastPosition;
31
32 public:
34 virtual void addPosition(int32_t position, ByteArray payload, int32_t payloadOffset, int32_t payloadLength);
35
36 void setField(FieldInfoPtr fieldInfo);
37
39 virtual void finish();
40
41 void close();
42 };
43 }
44
45 #endif

clucene.sourceforge.net