Skip to content

Commit

Permalink
Merge d29cd6e into 26d1cdd
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchuanyin committed Nov 1, 2018
2 parents 26d1cdd + d29cd6e commit 153a0db
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -185,7 +185,9 @@ public List<Blocklet> prune(FilterResolverIntf filterExp, SegmentProperties segm
}
for (BloomQueryModel bloomQueryModel : bloomQueryModels) {
Set<Blocklet> tempHitBlockletsResult = new HashSet<>();
LOGGER.debug("prune blocklet for query: " + bloomQueryModel);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("prune blocklet for query: " + bloomQueryModel);
}
BloomCacheKeyValue.CacheKey cacheKey = new BloomCacheKeyValue.CacheKey(
this.indexPath.toString(), bloomQueryModel.columnName);
BloomCacheKeyValue.CacheValue cacheValue = cache.get(cacheKey);
Expand All @@ -205,12 +207,14 @@ public List<Blocklet> prune(FilterResolverIntf filterExp, SegmentProperties segm
}
}
if (scanRequired) {
LOGGER.debug(String.format("BloomCoarseGrainDataMap: Need to scan -> blocklet#%s",
String.valueOf(bloomFilter.getBlockletNo())));
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(String.format("BloomCoarseGrainDataMap: Need to scan -> blocklet#%s",
String.valueOf(bloomFilter.getBlockletNo())));
}
Blocklet blocklet = new Blocklet(bloomFilter.getShardName(),
String.valueOf(bloomFilter.getBlockletNo()));
tempHitBlockletsResult.add(blocklet);
} else {
} else if (LOGGER.isDebugEnabled()) {
LOGGER.debug(String.format("BloomCoarseGrainDataMap: Skip scan -> blocklet#%s",
String.valueOf(bloomFilter.getBlockletNo())));
}
Expand Down

0 comments on commit 153a0db

Please sign in to comment.