Lucene++ - a full-featured, c++ search engine
API Documentation
#include <SegmentTermVector.h>
Public Member Functions | |
SegmentTermVector (const String &field, Collection< String > terms, Collection< int32_t > termFreqs) | |
virtual | ~SegmentTermVector () |
virtual String | getClassName () |
boost::shared_ptr< SegmentTermVector > | shared_from_this () |
virtual String | getField () |
virtual String | toString () |
Returns a string representation of the object. | |
virtual int32_t | size () |
virtual Collection< String > | getTerms () |
virtual Collection< int32_t > | getTermFrequencies () |
virtual int32_t | indexOf (const String &term) |
Return an index in the term numbers array returned from getTerms at which the term with the specified term appears. | |
virtual Collection< int32_t > | indexesOf (Collection< String > termNumbers, int32_t start, int32_t length) |
Just like indexOf(int) but searches for a number of terms at the same time. | |
![]() | |
virtual | ~TermPositionVector () |
virtual Collection< int32_t > | getTermPositions (int32_t index) |
Returns an array of positions in which the term is found. Terms are identified by the index at which its number appears in the term String array obtained from the indexOf method. May return null if positions have not been stored. | |
virtual Collection< TermVectorOffsetInfoPtr > | getOffsets (int32_t index) |
Returns an array of TermVectorOffsetInfo in which the term is found. May return null if offsets have not been stored. | |
![]() | |
virtual | ~TermFreqVector () |
![]() | |
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 | ~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 () |
![]() | |
static String | _getClassName () |
![]() | |
static String | _getClassName () |
Protected Attributes | |
String | field |
Collection< String > | terms |
Collection< int32_t > | termFreqs |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Additional Inherited Members | |
![]() | |
TermPositionVector () | |
![]() | |
TermFreqVector () | |
![]() | |
LuceneObject () | |
Lucene::SegmentTermVector::SegmentTermVector | ( | const String & | field, |
Collection< String > | terms, | ||
Collection< int32_t > | termFreqs | ||
) |
|
virtual |
|
inlinestatic |
|
inlinevirtual |
Reimplemented from Lucene::TermPositionVector.
Reimplemented in Lucene::SegmentTermPositionVector.
|
virtual |
Reimplemented from Lucene::TermFreqVector.
|
virtual |
Reimplemented from Lucene::TermFreqVector.
|
virtual |
Reimplemented from Lucene::TermFreqVector.
|
virtual |
Just like indexOf(int) but searches for a number of terms at the same time.
Reimplemented from Lucene::TermFreqVector.
|
virtual |
Return an index in the term numbers array returned from getTerms at which the term with the specified term appears.
Reimplemented from Lucene::TermFreqVector.
|
inline |
|
virtual |
Reimplemented from Lucene::TermFreqVector.
|
virtual |
Returns a string representation of the object.
Reimplemented from Lucene::LuceneObject.
|
protected |
|
protected |
|
protected |