Class OffsetsFromMatchIterator
- java.lang.Object
-
- org.apache.lucene.search.matchhighlight.OffsetsFromMatchIterator
-
- All Implemented Interfaces:
OffsetsRetrievalStrategy
public final class OffsetsFromMatchIterator extends Object implements OffsetsRetrievalStrategy
This strategy retrieves offsets directly fromMatchesIterator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OffsetRange>get(MatchesIterator matchesIterator, MatchRegionRetriever.FieldValueProvider doc)Return value offsets (match ranges) acquired from the givenMatchesIterator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.search.matchhighlight.OffsetsRetrievalStrategy
requiresDocument
-
-
-
-
Method Detail
-
get
public List<OffsetRange> get(MatchesIterator matchesIterator, MatchRegionRetriever.FieldValueProvider doc) throws IOException
Description copied from interface:OffsetsRetrievalStrategyReturn value offsets (match ranges) acquired from the givenMatchesIterator.- Specified by:
getin interfaceOffsetsRetrievalStrategy- Throws:
IOException
-
-