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
FieldSortedTermVectorMapper.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 FIELDSORTEDTERMVECTORMAPPER_H
8 #define FIELDSORTEDTERMVECTORMAPPER_H
9
10 #include <boost/function.hpp>
11 #include "TermVectorMapper.h"
12
13 namespace Lucene
14 {
17 class LPPAPI FieldSortedTermVectorMapper : public TermVectorMapper
18 {
19 public:
21 FieldSortedTermVectorMapper(TermVectorEntryComparator comparator);
22
23 FieldSortedTermVectorMapper(bool ignoringPositions, bool ignoringOffsets, TermVectorEntryComparator comparator);
24
25 virtual ~FieldSortedTermVectorMapper();
26
27 LUCENE_CLASS(FieldSortedTermVectorMapper);
28
29 protected:
30 MapStringCollectionTermVectorEntry fieldToTerms;
31 Collection<TermVectorEntryPtr> currentSet;
32 String currentField;
33 TermVectorEntryComparator comparator;
34
35 public:
37 virtual void map(const String& term, int32_t frequency, Collection<TermVectorOffsetInfoPtr> offsets, Collection<int32_t> positions);
38
40 virtual void setExpectations(const String& field, int32_t numTerms, bool storeOffsets, bool storePositions);
41
45 MapStringCollectionTermVectorEntry getFieldToTerms();
46
47 TermVectorEntryComparator getComparator();
48 };
49 }
50
51 #endif

clucene.sourceforge.net