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
FormatPostingsPositionsWriter.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 FORMATPOSTINGSPOSITIONSWRITER_H
8
#define FORMATPOSTINGSPOSITIONSWRITER_H
9
10
#include "
FormatPostingsPositionsConsumer.h
"
11
12
namespace
Lucene {
13
14
class
FormatPostingsPositionsWriter
:
public
FormatPostingsPositionsConsumer
{
15
public
:
16
FormatPostingsPositionsWriter
(
const
SegmentWriteStatePtr
& state,
const
FormatPostingsDocsWriterPtr
& parent);
17
virtual
~FormatPostingsPositionsWriter
();
18
19
LUCENE_CLASS
(
FormatPostingsPositionsWriter
);
20
21
public
:
22
FormatPostingsDocsWriterWeakPtr
_parent
;
23
IndexOutputPtr
out
;
24
25
bool
omitTermFreqAndPositions
;
26
bool
storePayloads
;
27
int32_t
lastPayloadLength
;
28
29
int32_t
lastPosition
;
30
31
public
:
33
virtual
void
addPosition
(int32_t position, ByteArray payload, int32_t payloadOffset, int32_t payloadLength);
34
35
void
setField
(
const
FieldInfoPtr
& fieldInfo);
36
38
virtual
void
finish
();
39
40
void
close
();
41
};
42
43
}
44
45
#endif
clucene.sourceforge.net