Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
TermVectorOffsetInfo.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 TERMVECTOROFFSETINFO_H
8
#define TERMVECTOROFFSETINFO_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
{
13
17
class
LPPAPI
TermVectorOffsetInfo
:
public
LuceneObject
{
18
public
:
19
TermVectorOffsetInfo
(int32_t
startOffset
= 0, int32_t
endOffset
= 0);
20
virtual
~TermVectorOffsetInfo
();
21
22
LUCENE_CLASS
(
TermVectorOffsetInfo
);
23
24
protected
:
25
int32_t
startOffset
;
26
int32_t
endOffset
;
27
28
public
:
30
static
const
Collection<TermVectorOffsetInfoPtr>
EMPTY_OFFSET_INFO
();
31
33
int32_t
getEndOffset
();
34
void
setEndOffset
(int32_t
endOffset
);
35
37
int32_t
getStartOffset
();
38
void
setStartOffset
(int32_t
startOffset
);
39
42
virtual
bool
equals
(
const
LuceneObjectPtr
& other);
43
44
virtual
int32_t
hashCode
();
45
};
46
47
}
48
49
#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene::TermVectorOffsetInfo::getStartOffset
int32_t getStartOffset()
The accessor for the starting offset of the term.
Lucene::TermVectorOffsetInfo::EMPTY_OFFSET_INFO
static const Collection< TermVectorOffsetInfoPtr > EMPTY_OFFSET_INFO()
Convenience declaration when creating a TermPositionVector that stores only position information.
Lucene::TermVectorOffsetInfo::setEndOffset
void setEndOffset(int32_t endOffset)
Lucene::TermVectorOffsetInfo::equals
virtual bool equals(const LuceneObjectPtr &other)
Two TermVectorOffsetInfos are equals if both the start and end offsets are the same.
Lucene::TermVectorOffsetInfo::~TermVectorOffsetInfo
virtual ~TermVectorOffsetInfo()
Lucene::TermVectorOffsetInfo::hashCode
virtual int32_t hashCode()
Return hash code for this object.
Lucene::TermVectorOffsetInfo::endOffset
int32_t endOffset
Definition
TermVectorOffsetInfo.h:26
Lucene::TermVectorOffsetInfo::TermVectorOffsetInfo
TermVectorOffsetInfo(int32_t startOffset=0, int32_t endOffset=0)
Lucene::TermVectorOffsetInfo::startOffset
int32_t startOffset
Definition
TermVectorOffsetInfo.h:25
Lucene::TermVectorOffsetInfo::getEndOffset
int32_t getEndOffset()
The accessor for the ending offset for the term.
Lucene::TermVectorOffsetInfo::setStartOffset
void setStartOffset(int32_t startOffset)
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition
LuceneTypes.h:539
clucene.sourceforge.net