Lucene++ - a full-featured, c++ search engine
API Documentation

Loading...
Searching...
No Matches
SegmentWriteState.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 SEGMENTWRITESTATE_H
8#define SEGMENTWRITESTATE_H
9
10#include "LuceneObject.h"
11
12 namespace Lucene {
13
14 class SegmentWriteState : public LuceneObject {
15 public:
16 SegmentWriteState(const DocumentsWriterPtr& docWriter, const DirectoryPtr& directory, const String& segmentName,
17 const String& docStoreSegmentName, int32_t numDocs, int32_t numDocsInStore,
18 int32_t termIndexInterval);
19 virtual ~SegmentWriteState();
20
21 LUCENE_CLASS(SegmentWriteState);
22
23 public:
24 DocumentsWriterWeakPtr _docWriter;
25 DirectoryPtr directory;
26 String segmentName;
27 String docStoreSegmentName;
28 int32_t numDocs;
29 int32_t termIndexInterval;
30 int32_t numDocsInStore;
31 HashSet<String> flushedFiles;
32
33 public:
34 String segmentFileName(const String& ext);
35};
36
37}
38
39#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::HashSet
Utility template class to handle hash set collections that can be safely copied and shared.
Definition HashSet.h:17
Lucene::LuceneObject
Base class for all Lucene classes.
Definition LuceneObject.h:31
Lucene::SegmentWriteState
Definition SegmentWriteState.h:14
Lucene::SegmentWriteState::numDocs
int32_t numDocs
Definition SegmentWriteState.h:28
Lucene::SegmentWriteState::segmentName
String segmentName
Definition SegmentWriteState.h:26
Lucene::SegmentWriteState::segmentFileName
String segmentFileName(const String &ext)
Lucene::SegmentWriteState::_docWriter
DocumentsWriterWeakPtr _docWriter
Definition SegmentWriteState.h:24
Lucene::SegmentWriteState::directory
DirectoryPtr directory
Definition SegmentWriteState.h:25
Lucene::SegmentWriteState::termIndexInterval
int32_t termIndexInterval
Definition SegmentWriteState.h:29
Lucene::SegmentWriteState::numDocsInStore
int32_t numDocsInStore
Definition SegmentWriteState.h:30
Lucene::SegmentWriteState::flushedFiles
HashSet< String > flushedFiles
Definition SegmentWriteState.h:31
Lucene::SegmentWriteState::~SegmentWriteState
virtual ~SegmentWriteState()
Lucene::SegmentWriteState::SegmentWriteState
SegmentWriteState(const DocumentsWriterPtr &docWriter, const DirectoryPtr &directory, const String &segmentName, const String &docStoreSegmentName, int32_t numDocs, int32_t numDocsInStore, int32_t termIndexInterval)
Lucene::SegmentWriteState::docStoreSegmentName
String docStoreSegmentName
Definition SegmentWriteState.h:27
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::DocumentsWriterPtr
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition LuceneTypes.h:123
Lucene::DocumentsWriterWeakPtr
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition LuceneTypes.h:123
Lucene::DirectoryPtr
boost::shared_ptr< Directory > DirectoryPtr
Definition LuceneTypes.h:489

clucene.sourceforge.net