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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Spans.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 SPANS_H
8 #define SPANS_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
17  class LPPAPI Spans : public LuceneObject
18  {
19  public:
20  virtual ~Spans();
22 
23  public:
25  virtual bool next() = 0;
26 
45  virtual bool skipTo(int32_t target) = 0;
46 
48  virtual int32_t doc() = 0;
49 
51  virtual int32_t start() = 0;
52 
54  virtual int32_t end() = 0;
55 
67  virtual Collection<ByteArray> getPayload() = 0;
68 
74  virtual bool isPayloadAvailable() = 0;
75  };
76 }
77 
78 #endif

clucene.sourceforge.net