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
include
SegmentTermVector.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 SEGMENTTERMVECTOR_H
8
#define SEGMENTTERMVECTOR_H
9
10
#include "
TermPositionVector.h
"
11
12
namespace
Lucene
13
{
14
class
SegmentTermVector
:
public
TermPositionVector
,
public
LuceneObject
15
{
16
public
:
17
SegmentTermVector
(
const
String&
field
,
Collection<String>
terms
,
Collection<int32_t>
termFreqs
);
18
virtual
~SegmentTermVector
();
19
20
LUCENE_CLASS
(
SegmentTermVector
);
21
22
protected
:
23
String
field
;
24
Collection<String>
terms
;
25
Collection<int32_t>
termFreqs
;
26
27
public
:
29
virtual
String
getField
();
30
31
virtual
String
toString
();
32
34
virtual
int32_t
size
();
35
37
virtual
Collection<String>
getTerms
();
38
40
virtual
Collection<int32_t>
getTermFrequencies
();
41
44
virtual
int32_t
indexOf
(
const
String& term);
45
47
virtual
Collection<int32_t>
indexesOf
(
Collection<String>
termNumbers, int32_t start, int32_t length);
48
};
49
}
50
51
#endif
clucene.sourceforge.net