Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
DocIdSetIterator.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 DOCIDSETITERATOR_H
8
#define DOCIDSETITERATOR_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
{
13
17
class
LPPAPI
DocIdSetIterator
:
public
LuceneObject
{
18
public
:
19
virtual
~DocIdSetIterator
();
20
21
LUCENE_CLASS
(
DocIdSetIterator
);
22
23
public
:
26
static
const
int32_t
NO_MORE_DOCS
;
27
28
public
:
35
virtual
int32_t
docID
() = 0;
36
42
virtual
int32_t
nextDoc
() = 0;
43
70
virtual
int32_t
advance
(int32_t target) = 0;
71
};
72
73
}
74
75
#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::DocIdSetIterator
This abstract class defines methods to iterate over a set of non-decreasing doc ids....
Definition
DocIdSetIterator.h:17
Lucene::DocIdSetIterator::NO_MORE_DOCS
static const int32_t NO_MORE_DOCS
When returned by nextDoc(), advance(int) and docID() it means there are no more docs in the iterator.
Definition
DocIdSetIterator.h:26
Lucene::DocIdSetIterator::advance
virtual int32_t advance(int32_t target)=0
Advances to the first beyond the current whose document number is greater than or equal to target....
Lucene::DocIdSetIterator::~DocIdSetIterator
virtual ~DocIdSetIterator()
Lucene::DocIdSetIterator::nextDoc
virtual int32_t nextDoc()=0
Advances to the next document in the set and returns the doc it is currently on, or NO_MORE_DOCS if t...
Lucene::DocIdSetIterator::docID
virtual int32_t docID()=0
Returns the following:
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net