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


 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 
11 
12 namespace Lucene
13 {
15  {
16  public:
19 
21 
22  public:
25 
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