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


SortedTermVectorMapper.h
Go to the documentation of this file.
1 // 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 SORTEDTERMVECTORMAPPER_H
8 #define SORTEDTERMVECTORMAPPER_H
9 
10 #include <boost/function.hpp>
11 #include "TermVectorMapper.h"
12 
13 namespace Lucene {
14 
23 public:
25  SortedTermVectorMapper(TermVectorEntryComparator comparator);
26 
27  SortedTermVectorMapper(bool ignoringPositions, bool ignoringOffsets, TermVectorEntryComparator comparator);
28 
29  virtual ~SortedTermVectorMapper();
30 
32 
33 protected:
35  MapStringTermVectorEntry termToTVE;
38  TermVectorEntryComparator comparator;
39 
40 public:
41  static const wchar_t* ALL;
42 
43 public:
45  virtual void map(const String& term, int32_t frequency, Collection<TermVectorOffsetInfoPtr> offsets, Collection<int32_t> positions);
46 
48  virtual void setExpectations(const String& field, int32_t numTerms, bool storeOffsets, bool storePositions);
49 
56  Collection<TermVectorEntryPtr> getTermVectorEntrySet();
57 };
58 
59 }
60 
61 #endif
TermVectorEntryComparator comparator
Definition: SortedTermVectorMapper.h:38
bool storePositions
Definition: SortedTermVectorMapper.h:37
static const wchar_t * ALL
Definition: SortedTermVectorMapper.h:41
Store a sorted collection of TermVectorEntrys. Collects all term information into a single...
Definition: SortedTermVectorMapper.h:22
MapStringTermVectorEntry termToTVE
Definition: SortedTermVectorMapper.h:35
bool storeOffsets
Definition: SortedTermVectorMapper.h:36
The TermVectorMapper can be used to map Term Vectors into your own structure instead of the parallel ...
Definition: TermVectorMapper.h:18
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12

clucene.sourceforge.net