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

Loading...
Searching...
No Matches
SegmentTermPositionVector.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 SEGMENTTERMPOSITIONVECTOR_H
8#define SEGMENTTERMPOSITIONVECTOR_H
9
10#include "SegmentTermVector.h"
11
12 namespace Lucene {
13
14 class LPPAPI SegmentTermPositionVector : public SegmentTermVector {
15 public:
16 SegmentTermPositionVector(const String& field, Collection<String> terms, Collection<int32_t> termFreqs,
17 Collection< Collection<int32_t> > positions, Collection< Collection<TermVectorOffsetInfoPtr> > offsets);
18 virtual ~SegmentTermPositionVector();
19
20 LUCENE_CLASS(SegmentTermPositionVector);
21
22 protected:
23 Collection< Collection<int32_t> > positions;
24 Collection< Collection<TermVectorOffsetInfoPtr> > offsets;
25
26 protected:
27 static const Collection<int32_t> EMPTY_TERM_POS();
28
29 public:
33 virtual Collection<TermVectorOffsetInfoPtr> getOffsets(int32_t index);
34
37 virtual Collection<int32_t> getTermPositions(int32_t index);
38};
39
40}
41
42#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
SegmentTermVector.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Lucene::SegmentTermPositionVector::offsets
Collection< Collection< TermVectorOffsetInfoPtr > > offsets
Definition SegmentTermPositionVector.h:24
Lucene::SegmentTermPositionVector::positions
Collection< Collection< int32_t > > positions
Definition SegmentTermPositionVector.h:23
Lucene::SegmentTermPositionVector::~SegmentTermPositionVector
virtual ~SegmentTermPositionVector()
Lucene::SegmentTermPositionVector::getTermPositions
virtual Collection< int32_t > getTermPositions(int32_t index)
Returns an array of positions in which the term is found. Terms are identified by the index at which ...
Lucene::SegmentTermPositionVector::SegmentTermPositionVector
SegmentTermPositionVector(const String &field, Collection< String > terms, Collection< int32_t > termFreqs, Collection< Collection< int32_t > > positions, Collection< Collection< TermVectorOffsetInfoPtr > > offsets)
Lucene::SegmentTermPositionVector::getOffsets
virtual Collection< TermVectorOffsetInfoPtr > getOffsets(int32_t index)
Returns an array of TermVectorOffsetInfo in which the term is found.
Lucene::SegmentTermPositionVector::EMPTY_TERM_POS
static const Collection< int32_t > EMPTY_TERM_POS()
Lucene::SegmentTermVector::terms
Collection< String > terms
Definition SegmentTermVector.h:23
Lucene::SegmentTermVector::termFreqs
Collection< int32_t > termFreqs
Definition SegmentTermVector.h:24
Lucene::SegmentTermVector::field
String field
Definition SegmentTermVector.h:22
Lucene::SegmentTermVector::SegmentTermVector
SegmentTermVector(const String &field, Collection< String > terms, Collection< int32_t > termFreqs)
Lucene
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net