Lucene++ - a full-featured, c++ search engine
API Documentation
OneMerge provides the information necessary to perform an individual primitive merge operation, resulting in a single new segment. The merge spec includes the subset of segments to be merged as well as whether the new segment should use the compound file format. More...
#include <MergePolicy.h>
Public Member Functions | |
OneMerge (const SegmentInfosPtr &segments, bool useCompoundFile) | |
virtual | ~OneMerge () |
virtual String | getClassName () |
boost::shared_ptr< OneMerge > | shared_from_this () |
void | setException (const LuceneException &error) |
Record that an exception occurred while executing this merge. | |
LuceneException | getException () |
Retrieve previous exception set by setException . | |
void | abort () |
Mark this merge as aborted. If this is called before the merge is committed then the merge will not be committed. | |
bool | isAborted () |
Returns true if this merge was aborted. | |
void | checkAborted (const DirectoryPtr &dir) |
String | segString (const DirectoryPtr &dir) |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. | |
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
Return clone of this object. | |
virtual int32_t | hashCode () |
Return hash code for this object. | |
virtual bool | equals (const LuceneObjectPtr &other) |
Return whether two objects are equal. | |
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
Compare two objects. | |
virtual String | toString () |
Returns a string representation of the object. | |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. | |
virtual void | unlock () |
Unlock this object. | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. | |
virtual void | notifyAll () |
Notify all threads waiting for signal. | |
Static Public Member Functions | |
static String | _getClassName () |
Data Fields | |
SegmentInfoPtr | info |
bool | mergeDocStores |
bool | optimize |
bool | registerDone |
int64_t | mergeGen |
bool | isExternal |
int32_t | maxNumSegmentsOptimize |
Collection< SegmentReaderPtr > | readers |
Collection< SegmentReaderPtr > | readersClone |
SegmentInfosPtr | segments |
bool | useCompoundFile |
bool | aborted |
LuceneException | error |
Additional Inherited Members | |
![]() | |
LuceneObject () | |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
OneMerge provides the information necessary to perform an individual primitive merge operation, resulting in a single new segment. The merge spec includes the subset of segments to be merged as well as whether the new segment should use the compound file format.
Lucene::OneMerge::OneMerge | ( | const SegmentInfosPtr & | segments, |
bool | useCompoundFile | ||
) |
|
virtual |
|
inlinestatic |
void Lucene::OneMerge::abort | ( | ) |
Mark this merge as aborted. If this is called before the merge is committed then the merge will not be committed.
void Lucene::OneMerge::checkAborted | ( | const DirectoryPtr & | dir | ) |
|
inlinevirtual |
LuceneException Lucene::OneMerge::getException | ( | ) |
Retrieve previous exception set by setException
.
bool Lucene::OneMerge::isAborted | ( | ) |
Returns true if this merge was aborted.
String Lucene::OneMerge::segString | ( | const DirectoryPtr & | dir | ) |
void Lucene::OneMerge::setException | ( | const LuceneException & | error | ) |
Record that an exception occurred while executing this merge.
|
inline |
bool Lucene::OneMerge::aborted |
LuceneException Lucene::OneMerge::error |
SegmentInfoPtr Lucene::OneMerge::info |
bool Lucene::OneMerge::isExternal |
int32_t Lucene::OneMerge::maxNumSegmentsOptimize |
bool Lucene::OneMerge::mergeDocStores |
int64_t Lucene::OneMerge::mergeGen |
bool Lucene::OneMerge::optimize |
Collection<SegmentReaderPtr> Lucene::OneMerge::readers |
Collection<SegmentReaderPtr> Lucene::OneMerge::readersClone |
bool Lucene::OneMerge::registerDone |
SegmentInfosPtr Lucene::OneMerge::segments |
bool Lucene::OneMerge::useCompoundFile |