Class SpanFilterResult

  extended by

public class SpanFilterResult
extends Object

The results of a SpanQueryFilter. Wraps the BitSet and the position information from the SpanQuery

NOTE: This API is still experimental and subject to change.

Nested Class Summary
static class SpanFilterResult.PositionInfo
static class SpanFilterResult.StartEnd
Constructor Summary
SpanFilterResult(DocIdSet docIdSet, List<SpanFilterResult.PositionInfo> positions)
Method Summary
 DocIdSet getDocIdSet()
          Returns the docIdSet
 List<SpanFilterResult.PositionInfo> getPositions()
          The first entry in the array corresponds to the first "on" bit.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SpanFilterResult(DocIdSet docIdSet,
                        List<SpanFilterResult.PositionInfo> positions)
docIdSet - The DocIdSet for the Filter
positions - A List of SpanFilterResult.PositionInfo objects
Method Detail


public List<SpanFilterResult.PositionInfo> getPositions()
The first entry in the array corresponds to the first "on" bit. Entries are increasing by document order

A List of PositionInfo objects


public DocIdSet getDocIdSet()
Returns the docIdSet

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.