Package com.browseengine.bobo.docidset

Examples of com.browseengine.bobo.docidset.AndDocIdSet$DescDocIdSetComparator


    } else {
      List<DocIdSet> list = new ArrayList<DocIdSet>(_filters.size());
      for (Filter f : _filters) {
        list.add(f.getDocIdSet(context, acceptDocs));
      }
      return new AndDocIdSet(list);
    }
  }
View Full Code Here


        list.add(s);
        randomAccessList.add(s);
      }
      final RandomAccessDocIdSet[] randomAccessDocIdSets = randomAccessList
          .toArray(new RandomAccessDocIdSet[randomAccessList.size()]);
      final DocIdSet andDocIdSet = new AndDocIdSet(list);
      return new RandomAccessDocIdSet() {
        @Override
        public boolean get(int docId) {
          for (RandomAccessDocIdSet s : randomAccessDocIdSets) {
            if (!s.get(docId)) return false;
          }
          return true;
        }

        @Override
        public DocIdSetIterator iterator() throws IOException {
          return andDocIdSet.iterator();
        }
      };
    }
  }
View Full Code Here

      notSelSet = new NotDocIdSet(notSelSet, maxDoc);
    }

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

TOP

Related Classes of com.browseengine.bobo.docidset.AndDocIdSet$DescDocIdSetComparator

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.