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
include
TermDocs.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 TERMDOCS_H
8
#define TERMDOCS_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
13
{
19
class
LPPAPI
TermDocs
20
{
21
protected
:
22
TermDocs
();
23
24
public
:
25
LUCENE_INTERFACE
(
TermDocs
);
26
27
public
:
29
virtual
void
seek(
TermPtr
term) = 0;
30
33
virtual
void
seek(
TermEnumPtr
termEnum) = 0;
34
36
virtual
int32_t doc() = 0;
37
40
virtual
int32_t freq() = 0;
41
43
virtual
bool
next() = 0;
44
48
virtual
int32_t read(
Collection<int32_t>
docs,
Collection<int32_t>
freqs) = 0;
49
52
virtual
bool
skipTo(int32_t target) = 0;
53
55
virtual
void
close() = 0;
56
};
57
}
58
59
#endif
clucene.sourceforge.net