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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermFreqVector.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 TERMFREQVECTOR_H
8 #define TERMFREQVECTOR_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI TermFreqVector {
19 protected:
21 
22 public:
23  virtual ~TermFreqVector();
25 
26 public:
29  virtual String getField();
30 
32  virtual int32_t size();
33 
35  virtual Collection<String> getTerms();
36 
40  virtual Collection<int32_t> getTermFrequencies();
41 
44  virtual int32_t indexOf(const String& term);
45 
52  virtual Collection<int32_t> indexesOf(Collection<String> terms, int32_t start, int32_t length);
53 };
54 
55 }
56 
57 #endif

clucene.sourceforge.net