Package org.apache.lucene.search
Class SpanFilterResult
- java.lang.Object
-
- org.apache.lucene.search.SpanFilterResult
-
public class SpanFilterResult extends Object
The results of a SpanQueryFilter. Wraps the BitSet and the position information from the SpanQuery- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpanFilterResult.PositionInfo
static class
SpanFilterResult.StartEnd
-
Constructor Summary
Constructors Constructor Description SpanFilterResult(DocIdSet docIdSet, List<SpanFilterResult.PositionInfo> positions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocIdSet
getDocIdSet()
Returns the docIdSetList<SpanFilterResult.PositionInfo>
getPositions()
The first entry in the array corresponds to the first "on" bit.
-
-
-
Constructor Detail
-
SpanFilterResult
public SpanFilterResult(DocIdSet docIdSet, List<SpanFilterResult.PositionInfo> positions)
- Parameters:
docIdSet
- The DocIdSet for the Filterpositions
- A List ofSpanFilterResult.PositionInfo
objects
-
-
Method Detail
-
getPositions
public List<SpanFilterResult.PositionInfo> getPositions()
The first entry in the array corresponds to the first "on" bit. Entries are increasing by document order- Returns:
- A List of PositionInfo objects
-
getDocIdSet
public DocIdSet getDocIdSet()
Returns the docIdSet
-
-