Author: epbernard
Date: 2009-03-25 17:49:56 -0400 (Wed, 25 Mar 2009)
New Revision: 16218
Modified:
search/trunk/src/main/java/org/hibernate/search/filter/FilterOptimizationHelper.java
Log:
HSEARCH-355 avoid method overloading
Modified:
search/trunk/src/main/java/org/hibernate/search/filter/FilterOptimizationHelper.java
===================================================================
---
search/trunk/src/main/java/org/hibernate/search/filter/FilterOptimizationHelper.java 2009-03-25
21:07:29 UTC (rev 16217)
+++
search/trunk/src/main/java/org/hibernate/search/filter/FilterOptimizationHelper.java 2009-03-25
21:49:56 UTC (rev 16218)
@@ -44,10 +44,10 @@
return docIdSets;
}
if ( openBitSets.size() > 0 ) {
- nonMergeAble.add( mergeByBitAnds( openBitSets ) );
+ nonMergeAble.add( mergeByBitAndsForOpenBitSet( openBitSets ) );
}
if ( docIdBitSets.size() > 0 ) {
- nonMergeAble.add( mergeByBitAnds( docIdBitSets ) );
+ nonMergeAble.add( mergeByBitAndsForDocIdBitSet( docIdBitSets ) );
}
return nonMergeAble;
}
@@ -60,7 +60,7 @@
* @return a new DocIdBitSet, or the first element if only
* one element was found in the list.
*/
- public static DocIdBitSet mergeByBitAnds(List<DocIdBitSet> docIdBitSets) {
+ private static DocIdBitSet mergeByBitAndsForDocIdBitSet(List<DocIdBitSet>
docIdBitSets) {
int listSize = docIdBitSets.size();
if ( listSize == 1 ) {
return docIdBitSets.get( 0 );
@@ -82,7 +82,7 @@
* @return a new OpenBitSet, or the first element if only
* one element was found in the list.
*/
- public static OpenBitSet mergeByBitAnds(List<OpenBitSet> openBitSets) {
+ private static OpenBitSet mergeByBitAndsForOpenBitSet(List<OpenBitSet>
openBitSets) {
int listSize = openBitSets.size();
if ( listSize == 1 ) {
return openBitSets.get( 0 );
Show replies by date