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
SegmentWriteState.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 SEGMENTWRITESTATE_H
8
#define SEGMENTWRITESTATE_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
13
{
14
class
SegmentWriteState
:
public
LuceneObject
15
{
16
public
:
17
SegmentWriteState
(
DocumentsWriterPtr
docWriter,
DirectoryPtr
directory
,
const
String&
segmentName
,
18
const
String&
docStoreSegmentName
, int32_t
numDocs
, int32_t
numDocsInStore
,
19
int32_t
termIndexInterval
);
20
virtual
~SegmentWriteState
();
21
22
LUCENE_CLASS
(
SegmentWriteState
);
23
24
public
:
25
DocumentsWriterWeakPtr
_docWriter
;
26
DirectoryPtr
directory
;
27
String
segmentName
;
28
String
docStoreSegmentName
;
29
int32_t
numDocs
;
30
int32_t
termIndexInterval
;
31
int32_t
numDocsInStore
;
32
HashSet<String>
flushedFiles
;
33
34
public
:
35
String
segmentFileName
(
const
String& ext);
36
};
37
}
38
39
#endif
clucene.sourceforge.net