Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
InvertedDocConsumerPerField.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 INVERTEDDOCCONSUMERPERFIELD_H
8
#define INVERTEDDOCCONSUMERPERFIELD_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
{
13
14
class
InvertedDocConsumerPerField
:
public
LuceneObject
{
15
public
:
16
virtual
~InvertedDocConsumerPerField
();
17
18
LUCENE_CLASS
(
InvertedDocConsumerPerField
);
19
20
public
:
23
virtual
bool
start
(
Collection<FieldablePtr>
fields, int32_t count) = 0;
24
26
virtual
void
start
(
const
FieldablePtr
& field) = 0;
27
29
virtual
void
add
() = 0;
30
32
virtual
void
finish
() = 0;
33
35
virtual
void
abort
() = 0;
36
};
37
38
}
39
40
#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::InvertedDocConsumerPerField
Definition
InvertedDocConsumerPerField.h:14
Lucene::InvertedDocConsumerPerField::start
virtual void start(const FieldablePtr &field)=0
Called before a field instance is being processed.
Lucene::InvertedDocConsumerPerField::~InvertedDocConsumerPerField
virtual ~InvertedDocConsumerPerField()
Lucene::InvertedDocConsumerPerField::finish
virtual void finish()=0
Called once per field per document, after all Fieldable occurrences are inverted.
Lucene::InvertedDocConsumerPerField::start
virtual bool start(Collection< FieldablePtr > fields, int32_t count)=0
Called once per field, and is given all Fieldable occurrences for this field in the document....
Lucene::InvertedDocConsumerPerField::add
virtual void add()=0
Called once per inverted token.
Lucene::InvertedDocConsumerPerField::abort
virtual void abort()=0
Called on hitting an aborting exception.
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::FieldablePtr
boost::shared_ptr< Fieldable > FieldablePtr
Definition
LuceneTypes.h:76
clucene.sourceforge.net