|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PayloadSpans
WARNING: The status of the Payloads feature is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
Method Summary | |
---|---|
Collection |
getPayload()
Returns the payload data for the current span. |
boolean |
isPayloadAvailable()
Checks if a payload can be loaded at this position. |
Methods inherited from interface org.apache.lucene.search.spans.Spans |
---|
doc, end, next, skipTo, start |
Method Detail |
---|
Collection getPayload() throws IOException
Spans.next()
is called for
the first time.
This method must not be called more than once after each call
of Spans.next()
. However, payloads are loaded lazily,
so if the payload data for the current position is not needed,
this method may not be called at all for performance reasons.WARNING: The status of the Payloads feature is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
IOException
boolean isPayloadAvailable()
Spans.next()
.
WARNING: The status of the Payloads feature is experimental. The APIs introduced here might change in the future and will not be supported anymore in such a case.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |