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
TermVectorMapper.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 TERMVECTORMAPPER_H
8 #define TERMVECTORMAPPER_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
18 class LPPAPI TermVectorMapper : public LuceneObject
19 {
20 public:
24 TermVectorMapper(bool ignoringPositions = false, bool ignoringOffsets = false);
25
26 virtual ~TermVectorMapper();
27
28 LUCENE_CLASS(TermVectorMapper);
29
30 protected:
31 bool ignoringPositions;
32 bool ignoringOffsets;
33
34 public:
43 virtual void setExpectations(const String& field, int32_t numTerms, bool storeOffsets, bool storePositions) = 0;
44
50 virtual void map(const String& term, int32_t frequency, Collection<TermVectorOffsetInfoPtr> offsets, Collection<int32_t> positions) = 0;
51
55 virtual bool isIgnoringPositions();
56
58 virtual bool isIgnoringOffsets();
59
69 virtual void setDocumentNumber(int32_t documentNumber);
70 };
71 }
72
73 #endif

clucene.sourceforge.net