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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FieldSortedTermVectorMapper.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 FIELDSORTEDTERMVECTORMAPPER_H
8 #define FIELDSORTEDTERMVECTORMAPPER_H
9 
10 #include <boost/function.hpp>
11 #include "TermVectorMapper.h"
12 
13 namespace Lucene {
14 
18 public:
20  FieldSortedTermVectorMapper(TermVectorEntryComparator comparator);
21 
22  FieldSortedTermVectorMapper(bool ignoringPositions, bool ignoringOffsets, TermVectorEntryComparator comparator);
23 
24  virtual ~FieldSortedTermVectorMapper();
25 
27 
28 protected:
29  MapStringCollectionTermVectorEntry fieldToTerms;
31  String currentField;
32  TermVectorEntryComparator comparator;
33 
34 public:
36  virtual void map(const String& term, int32_t frequency, Collection<TermVectorOffsetInfoPtr> offsets, Collection<int32_t> positions);
37 
39  virtual void setExpectations(const String& field, int32_t numTerms, bool storeOffsets, bool storePositions);
40 
44  MapStringCollectionTermVectorEntry getFieldToTerms();
45 
46  TermVectorEntryComparator getComparator();
47 };
48 
49 }
50 
51 #endif

clucene.sourceforge.net