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


Loading...
Searching...
No Matches
TermVectorEntry.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 TERMVECTORENTRY_H
8#define TERMVECTORENTRY_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
15class LPPAPI TermVectorEntry : public LuceneObject {
16public:
17 TermVectorEntry(const String& field = EmptyString, const String& term = EmptyString, int32_t frequency = 0,
21
23
24protected:
25 String field;
26 String term;
27 int32_t frequency;
30
31public:
32 String getField();
33 int32_t getFrequency();
36 String getTerm();
37
38 void setFrequency(int32_t frequency);
41
42 virtual bool equals(const LuceneObjectPtr& other);
43 virtual int32_t hashCode();
44 virtual String toString();
45};
46
47}
48
49#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
Convenience class for holding TermVector information.
Definition TermVectorEntry.h:15
void setOffsets(Collection< TermVectorOffsetInfoPtr > offsets)
Collection< int32_t > getPositions()
virtual String toString()
Returns a string representation of the object.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual int32_t hashCode()
Return hash code for this object.
void setPositions(Collection< int32_t > positions)
Collection< TermVectorOffsetInfoPtr > offsets
Definition TermVectorEntry.h:28
String term
Definition TermVectorEntry.h:26
TermVectorEntry(const String &field=EmptyString, const String &term=EmptyString, int32_t frequency=0, Collection< TermVectorOffsetInfoPtr > offsets=Collection< TermVectorOffsetInfoPtr >(), Collection< int32_t > positions=Collection< int32_t >())
int32_t frequency
Definition TermVectorEntry.h:27
Collection< int32_t > positions
Definition TermVectorEntry.h:29
Collection< TermVectorOffsetInfoPtr > getOffsets()
void setFrequency(int32_t frequency)
String field
Definition TermVectorEntry.h:25
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539

clucene.sourceforge.net