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
SegmentTermPositionVector.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 SEGMENTTERMPOSITIONVECTOR_H
8 #define SEGMENTTERMPOSITIONVECTOR_H
9
10 #include "SegmentTermVector.h"
11
12 namespace Lucene
13 {
14 class SegmentTermPositionVector : public SegmentTermVector
15 {
16 public:
17 SegmentTermPositionVector(const String& field, Collection<String> terms, Collection<int32_t> termFreqs,
18 Collection< Collection<int32_t> > positions, Collection< Collection<TermVectorOffsetInfoPtr> > offsets);
19 virtual ~SegmentTermPositionVector();
20
21 LUCENE_CLASS(SegmentTermPositionVector);
22
23 protected:
24 Collection< Collection<int32_t> > positions;
25 Collection< Collection<TermVectorOffsetInfoPtr> > offsets;
26
27 protected:
28 static const Collection<int32_t> EMPTY_TERM_POS();
29
30 public:
34 virtual Collection<TermVectorOffsetInfoPtr> getOffsets(int32_t index);
35
38 virtual Collection<int32_t> getTermPositions(int32_t index);
39 };
40 }
41
42 #endif

clucene.sourceforge.net