org.hibernate.search.filter
Class FilterOptimizationHelper

java.lang.Object
  extended by org.hibernate.search.filter.FilterOptimizationHelper

public class FilterOptimizationHelper
extends java.lang.Object

Helper class to apply some common optimizations when several Filters are applied.

Author:
Sanne Grinovero

Constructor Summary
FilterOptimizationHelper()
           
 
Method Summary
static java.util.List<org.apache.lucene.search.DocIdSet> mergeByBitAnds(java.util.List<org.apache.lucene.search.DocIdSet> docIdSets)
          Returns a new list of DocIdSet, applying binary AND on all DocIdSet implemented by using BitSet or OpenBitSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterOptimizationHelper

public FilterOptimizationHelper()
Method Detail

mergeByBitAnds

public static java.util.List<org.apache.lucene.search.DocIdSet> mergeByBitAnds(java.util.List<org.apache.lucene.search.DocIdSet> docIdSets)
Returns a new list of DocIdSet, applying binary AND on all DocIdSet implemented by using BitSet or OpenBitSet.

Parameters:
docIdSets -
Returns:
the same list if no changes were done


Copyright © 2006-2010 Hibernate. All Rights Reserved.