@Override
public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboIndexReader reader) throws IOException
{
final RandomAccessDocIdSet innerDocIdSet = _innerFilter.getRandomAccessDocIdSet(reader);
final DocIdSet notInnerDocIdSet = new NotDocIdSet(innerDocIdSet, reader.maxDoc());
return new RandomAccessDocIdSet()
{
@Override
public boolean get(int docId)
{
return !innerDocIdSet.get(docId);
}
@Override
public DocIdSetIterator iterator() throws IOException
{
return notInnerDocIdSet.iterator();
}
};
}