24 static const int32_t FORMAT;
61 static int32_t defaultGenFileRetryCount;
62 static int32_t defaultGenFileRetryPauseMsec;
63 static int32_t defaultGenLookaheadCount;
71 int64_t lastGeneration;
75 MapStringString userData;
77 static MapStringString singletonUserData;
84 String getCurrentSegmentFileName();
85 String getNextSegmentFileName();
88 void read(
const DirectoryPtr& directory,
const String& segmentFileName);
98 int64_t getGeneration();
99 int64_t getLastGeneration();
126 MapStringString getUserData();
127 void setUserData(MapStringString data);
136 static int64_t getCurrentSegmentGeneration(
const DirectoryPtr& directory);
138 static String getCurrentSegmentFileName(
const DirectoryPtr& directory);
139 static int64_t generationFromSegmentsFileName(
const String& fileName);
142 static int64_t readCurrentVersion(
const DirectoryPtr& directory);
145 static MapStringString readCurrentUserData(
const DirectoryPtr& directory);
152 static void setDefaultGenFileRetryCount(int32_t count);
155 static int32_t getDefaultGenFileRetryCount();
158 static void setDefaultGenFileRetryPauseMsec(int32_t msec);
161 static int32_t getDefaultGenFileRetryPauseMsec();
165 static void setDefaultGenLookaheadCount(int32_t count);
168 static int32_t getDefaultGenLookahedCount();
173 static void message(
const String& message);
178 friend class FindSegmentsFile;
boost::shared_ptr< InfoStream > InfoStreamPtr
Definition: LuceneTypes.h:532
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
static const int32_t FORMAT_LOCKLESS
This format adds details used for lockless commits. It differs slightly from the previous format in t...
Definition: SegmentInfos.h:30
boost::shared_ptr< ChecksumIndexOutput > ChecksumIndexOutputPtr
Definition: LuceneTypes.h:488
static const int32_t FORMAT_HAS_PROX
This format adds the boolean hasProx to record if any fields in the segment store prox information (i...
Definition: SegmentInfos.h:46
int32_t counter
Definition: SegmentInfos.h:57
boost::shared_ptr< SegmentInfo > SegmentInfoPtr
Definition: LuceneTypes.h:208
static const int32_t FORMAT_CHECKSUM
This format adds a checksum at the end of the file to ensure all bytes were successfully written...
Definition: SegmentInfos.h:39
static const int32_t CURRENT_FORMAT
This must always point to the most recent file format.
Definition: SegmentInfos.h:55
boost::shared_ptr< SegmentInfos > SegmentInfosPtr
Definition: LuceneTypes.h:210
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
static const int32_t FORMAT_DEL_COUNT
This format adds the deletion count for each segment. This way IndexWriter can efficiently report num...
Definition: SegmentInfos.h:42
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
static const int32_t FORMAT_USER_DATA
This format adds optional commit userData storage.
Definition: SegmentInfos.h:49
static const int32_t FORMAT_DIAGNOSTICS
This format adds optional per-segment string diagnostics storage, and switches userData to Map...
Definition: SegmentInfos.h:52
A collection of SegmentInfo objects to be used as a base class for SegmentInfos.
Definition: SegmentInfoCollection.h:15
static const int32_t FORMAT_SINGLE_NORM_FILE
This format adds a "hasSingleNormFile" flag into each segment info.
Definition: SegmentInfos.h:33
A collection of SegmentInfo objects with methods for operating on those segments in relation to the f...
Definition: SegmentInfos.h:15
static const int32_t FORMAT_SHARED_DOC_STORE
This format allows multiple segments to share a single vectors and stored fields file.
Definition: SegmentInfos.h:36