Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef NEARSPANSUNORDERED_H
8 #define NEARSPANSUNORDERED_H
50 virtual int32_t
doc();
52 virtual int32_t
end();
66 friend class SpansCell;
Collection< SpansCellPtr > ordered
Definition: NearSpansUnordered.h:28
virtual bool isPayloadAvailable()
Checks if a payload can be loaded at this position.
virtual Collection< ByteArray > getPayload()
Returns the payload data for the current span. This is invalid until next() is called for the first t...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
virtual int32_t end()
Returns the end position of the current match. Initially invalid.
An enumeration of span matches. Used to implement span searching. Each span represents a range of ter...
Definition: Spans.h:17
virtual bool skipTo(int32_t target)
Skips to the first match beyond the current, whose document number is greater than or equal to target...
void addToList(const SpansCellPtr &cell)
boost::shared_ptr< SpanNearQuery > SpanNearQueryPtr
Definition: LuceneTypes.h:447
SpansCellPtr first
Definition: NearSpansUnordered.h:32
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
virtual bool next()
Move to the next match, returning true if any such exists.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
SpansCellPtr max
Definition: NearSpansUnordered.h:38
Similar to NearSpansOrdered, but for the unordered case.
Definition: NearSpansUnordered.h:17
bool more
Definition: NearSpansUnordered.h:40
bool firstTime
Definition: NearSpansUnordered.h:41
boost::shared_ptr< CellQueue > CellQueuePtr
Definition: LuceneTypes.h:294
boost::shared_ptr< SpansCell > SpansCellPtr
Definition: LuceneTypes.h:454
NearSpansUnordered(const SpanNearQueryPtr &query, const IndexReaderPtr &reader)
SpansCellPtr last
Definition: NearSpansUnordered.h:33
CellQueuePtr queue
Definition: NearSpansUnordered.h:37
int32_t slop
Definition: NearSpansUnordered.h:30
virtual int32_t start()
Returns the start position of the current match. Initially invalid.
IndexReaderPtr reader
Definition: NearSpansUnordered.h:26
Collection< SpansPtr > subSpans
Definition: NearSpansUnordered.h:29
virtual int32_t doc()
Returns the document number of the current match. Initially invalid.
Collection< SpansPtr > getSubSpans()
virtual ~NearSpansUnordered()
int32_t totalLength
Definition: NearSpansUnordered.h:35
virtual String toString()
Returns a string representation of the object.
SpanNearQueryPtr query
Definition: NearSpansUnordered.h:22
clucene.sourceforge.net