Package com.browseengine.bobo.docidset

Examples of com.browseengine.bobo.docidset.NotDocIdSet$NotDocIdSetIterator


  }

  @Override
  public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboSegmentReader 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();
      }
    };
  }
View Full Code Here


    _innerFilter = innerFilter;
  }

  @Override
  public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException {
    return new NotDocIdSet(_innerFilter.getDocIdSet(context, acceptDocs), context.reader().maxDoc());
  }
View Full Code Here

        }
      }
    }

    if (notSelSet != null) {
      notSelSet = new NotDocIdSet(notSelSet, maxDoc);
    }

    if (selSet != null && notSelSet != null) {
      DocIdSet[] sets = new DocIdSet[] { selSet, notSelSet };
      docSet = new AndDocIdSet(Arrays.asList(sets));
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.docidset.NotDocIdSet$NotDocIdSetIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.