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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermVectorEntry.h
Go to the documentation of this file.
1 
2 // 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 TERMVECTORENTRY_H
8 #define TERMVECTORENTRY_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI TermVectorEntry : public LuceneObject {
16 public:
17  TermVectorEntry(const String& field = EmptyString, const String& term = EmptyString, int32_t frequency = 0,
20  virtual ~TermVectorEntry();
21 
23 
24 protected:
25  String field;
26  String term;
27  int32_t frequency;
30 
31 public:
32  String getField();
33  int32_t getFrequency();
35  Collection<int32_t> getPositions();
36  String getTerm();
37 
38  void setFrequency(int32_t frequency);
39  void setOffsets(Collection<TermVectorOffsetInfoPtr> offsets);
40  void setPositions(Collection<int32_t> positions);
41 
42  virtual bool equals(const LuceneObjectPtr& other);
43  virtual int32_t hashCode();
44  virtual String toString();
45 };
46 
47 }
48 
49 #endif

clucene.sourceforge.net