44 virtual bool skipTo(int32_t target) = 0;
47 virtual int32_t
doc() = 0;
53 virtual int32_t
end() = 0;
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
An enumeration of span matches. Used to implement span searching. Each span represents a range of ter...
Definition Spans.h:17
virtual int32_t start()=0
Returns the start position of the current match. Initially invalid.
virtual bool next()=0
Move to the next match, returning true if any such exists.
virtual bool skipTo(int32_t target)=0
Skips to the first match beyond the current, whose document number is greater than or equal to target...
virtual int32_t end()=0
Returns the end position of the current match. Initially invalid.
virtual int32_t doc()=0
Returns the document number of the current match. Initially invalid.
virtual Collection< ByteArray > getPayload()=0
Returns the payload data for the current span. This is invalid until next() is called for the first t...
virtual bool isPayloadAvailable()=0
Checks if a payload can be loaded at this position.
Definition AbstractAllTermDocs.h:12