Package com.browseengine.bobo.docidset

Examples of com.browseengine.bobo.docidset.OrDocIdSet$AescDocIdSetComparator


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

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


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

        if (_vals.size() < OR_THRESHOLD) {
          ArrayList<DocIdSet> docSetList = new ArrayList<DocIdSet>(_vals.size());
          for (String val : _vals) {
            docSetList.add(new TermDocIdSet(_reader, _name, val));
          }
          return new OrDocIdSet(docSetList).iterator();
        } else {
          return _innerSet.iterator();
        }
      }
    }
View Full Code Here

        if (notSelSetList.size() > 0) {
          if (notSelSetList.size() == 1) {
            notSelSet = notSelSetList.get(0);
          } else {
            notSelSet = new OrDocIdSet(notSelSetList);
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.browseengine.bobo.docidset.OrDocIdSet$AescDocIdSetComparator

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.