Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
SortedTermVectorMapper.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 SORTEDTERMVECTORMAPPER_H
8
#define SORTEDTERMVECTORMAPPER_H
9
10
#include <boost/function.hpp>
11
#include "
TermVectorMapper.h
"
12
13
namespace
Lucene
{
14
22
class
LPPAPI
SortedTermVectorMapper
:
public
TermVectorMapper
{
23
public
:
25
SortedTermVectorMapper
(TermVectorEntryComparator
comparator
);
26
27
SortedTermVectorMapper
(
bool
ignoringPositions
,
bool
ignoringOffsets
, TermVectorEntryComparator
comparator
);
28
29
virtual
~SortedTermVectorMapper
();
30
31
LUCENE_CLASS
(
SortedTermVectorMapper
);
32
33
protected
:
34
Collection<TermVectorEntryPtr>
currentSet
;
35
MapStringTermVectorEntry
termToTVE
;
36
bool
storeOffsets
;
37
bool
storePositions
;
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
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
TermVectorMapper.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::SortedTermVectorMapper::map
virtual void map(const String &term, int32_t frequency, Collection< TermVectorOffsetInfoPtr > offsets, Collection< int32_t > positions)
Map the Term Vector information into your own structure.
Lucene::SortedTermVectorMapper::getTermVectorEntrySet
Collection< TermVectorEntryPtr > getTermVectorEntrySet()
The TermVectorEntrySet. A SortedSet of TermVectorEntry objects. Sort is by the comparator passed into...
Lucene::SortedTermVectorMapper::SortedTermVectorMapper
SortedTermVectorMapper(TermVectorEntryComparator comparator)
Lucene::SortedTermVectorMapper::currentSet
Collection< TermVectorEntryPtr > currentSet
Definition
SortedTermVectorMapper.h:34
Lucene::SortedTermVectorMapper::storeOffsets
bool storeOffsets
Definition
SortedTermVectorMapper.h:36
Lucene::SortedTermVectorMapper::~SortedTermVectorMapper
virtual ~SortedTermVectorMapper()
Lucene::SortedTermVectorMapper::comparator
TermVectorEntryComparator comparator
Definition
SortedTermVectorMapper.h:38
Lucene::SortedTermVectorMapper::termToTVE
MapStringTermVectorEntry termToTVE
Definition
SortedTermVectorMapper.h:35
Lucene::SortedTermVectorMapper::storePositions
bool storePositions
Definition
SortedTermVectorMapper.h:37
Lucene::SortedTermVectorMapper::ALL
static const wchar_t * ALL
Definition
SortedTermVectorMapper.h:41
Lucene::SortedTermVectorMapper::setExpectations
virtual void setExpectations(const String &field, int32_t numTerms, bool storeOffsets, bool storePositions)
Tell the mapper what to expect in regards to field, number of terms, offset and position storage.
Lucene::SortedTermVectorMapper::SortedTermVectorMapper
SortedTermVectorMapper(bool ignoringPositions, bool ignoringOffsets, TermVectorEntryComparator comparator)
Lucene::TermVectorMapper::ignoringOffsets
bool ignoringOffsets
Definition
TermVectorMapper.h:31
Lucene::TermVectorMapper::TermVectorMapper
TermVectorMapper(bool ignoringPositions=false, bool ignoringOffsets=false)
Lucene::TermVectorMapper::ignoringPositions
bool ignoringPositions
Definition
TermVectorMapper.h:30
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net