Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
23 bool hasSingleNormFile, int32_t docStoreOffset,
const String& docStoreSegment,
24 bool docStoreIsCompoundFile,
bool hasProx);
37 static const int32_t
NO;
38 static const int32_t
YES;
144 void setDocStore(int32_t offset,
const String& segment,
bool isCompoundFile);
void setNumFields(int32_t numFields)
void addIfExists(HashSet< String > files, const String &fileName)
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Return clone of this object.
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
MapStringString getDiagnostics()
uint8_t isCompoundFile
Definition: SegmentInfo.h:59
static const int32_t YES
Definition: SegmentInfo.h:38
DirectoryPtr dir
Definition: SegmentInfo.h:93
boost::shared_ptr< SegmentInfo > SegmentInfoPtr
Definition: LuceneTypes.h:208
SegmentInfo(const String &name, int32_t docCount, const DirectoryPtr &dir, bool isCompoundFile, bool hasSingleNormFile, int32_t docStoreOffset, const String &docStoreSegment, bool docStoreIsCompoundFile, bool hasProx)
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
String docStoreSegment
Definition: SegmentInfo.h:77
bool docStoreIsCompoundFile
Definition: SegmentInfo.h:80
SegmentInfo(const DirectoryPtr &dir, int32_t format, const IndexInputPtr &input)
Construct a new SegmentInfo instance by reading a previously saved SegmentInfo from input.
virtual bool equals(const LuceneObjectPtr &other)
We consider another SegmentInfo instance equal if it has the same dir and same name.
String segString(const DirectoryPtr &dir)
Used for debugging.
void setUseCompoundFile(bool isCompoundFile)
Mark whether this segment is stored as a compound file.
String name
Definition: SegmentInfo.h:91
Collection< int64_t > normGen
Definition: SegmentInfo.h:55
int64_t _sizeInBytes
Definition: SegmentInfo.h:70
Definition: AbstractAllTermDocs.h:12
bool getUseCompoundFile()
Returns true if this segment is stored as a compound file; else, false.
MapStringString diagnostics
Definition: SegmentInfo.h:88
Base class for all Lucene classes.
Definition: LuceneObject.h:31
bool hasProx
Definition: SegmentInfo.h:86
bool getDocStoreIsCompoundFile()
void advanceNormGen(int32_t fieldIndex)
Increment the generation count for the norms file for this field.
static const int32_t WITHOUT_GEN
Definition: SegmentInfo.h:40
void setDiagnostics(MapStringString diagnostics)
virtual int32_t hashCode()
Return hash code for this object.
SegmentInfo(const String &name, int32_t docCount, const DirectoryPtr &dir)
int64_t delGen
Definition: SegmentInfo.h:48
boost::shared_ptr< IndexInput > IndexInputPtr
Definition: LuceneTypes.h:493
int32_t docCount
Definition: SegmentInfo.h:92
bool hasSingleNormFile
Definition: SegmentInfo.h:64
HashSet< String > _files
Definition: SegmentInfo.h:67
void write(const IndexOutputPtr &output)
Save this segment's info.
static const int32_t CHECK_DIR
Definition: SegmentInfo.h:39
void setDocStoreOffset(int32_t offset)
HashSet< String > files()
Return all files referenced by this SegmentInfo. The returns List is a locally cached List so you sho...
void setDocStoreIsCompoundFile(bool v)
int64_t sizeInBytes()
Returns total size in bytes of all of files used by this segment.
void setHasProx(bool hasProx)
SegmentInfo(const String &name, int32_t docCount, const DirectoryPtr &dir, bool isCompoundFile, bool hasSingleNormFile)
String getDocStoreSegment()
String getNormFileName(int32_t number)
Get the file name for the norms file for this field.
void setDocStore(int32_t offset, const String &segment, bool isCompoundFile)
bool hasSeparateNorms()
Returns true if any fields in this segment have separate norms.
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
bool preLockless
Definition: SegmentInfo.h:44
int32_t docStoreOffset
Definition: SegmentInfo.h:74
bool hasSeparateNorms(int32_t fieldNumber)
Returns true if this field for this segment has saved a separate norms file (_<segment>_N....
int32_t getDocStoreOffset()
int32_t delCount
Definition: SegmentInfo.h:83
void clearFiles()
Called whenever any change is made that affects which files this segment has.
Information about a segment such as it's name, directory, and files related to the segment.
Definition: SegmentInfo.h:16
void setDelCount(int32_t delCount)
void reset(const SegmentInfoPtr &src)
Copy everything from src SegmentInfo into our instance.
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
static const int32_t NO
Definition: SegmentInfo.h:34
clucene.sourceforge.net