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
TermVectorEntry.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 TERMVECTORENTRY_H
8 #define TERMVECTORENTRY_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
15 class LPPAPI TermVectorEntry : public LuceneObject
16 {
17 public:
18 TermVectorEntry(const String& field = EmptyString, const String& term = EmptyString, int32_t frequency = 0,
19 Collection<TermVectorOffsetInfoPtr> offsets = Collection<TermVectorOffsetInfoPtr>(),
20 Collection<int32_t> positions = Collection<int32_t>());
21 virtual ~TermVectorEntry();
22
23 LUCENE_CLASS(TermVectorEntry);
24
25 protected:
26 String field;
27 String term;
28 int32_t frequency;
29 Collection<TermVectorOffsetInfoPtr> offsets;
30 Collection<int32_t> positions;
31
32 public:
33 String getField();
34 int32_t getFrequency();
35 Collection<TermVectorOffsetInfoPtr> getOffsets();
36 Collection<int32_t> getPositions();
37 String getTerm();
38
39 void setFrequency(int32_t frequency);
40 void setOffsets(Collection<TermVectorOffsetInfoPtr> offsets);
41 void setPositions(Collection<int32_t> positions);
42
43 virtual bool equals(LuceneObjectPtr other);
44 virtual int32_t hashCode();
45 virtual String toString();
46 };
47 }
48
49 #endif

clucene.sourceforge.net