if(cachedSegFilters != null) {
for(int i=0;i<cachedSegFilters.length;i++) {
segmentFilters[i] = cachedSegFilters[i];
container.activate(cachedSegFilters[i], Integer.MAX_VALUE);
cachedSegFilters[i].init(container);
<BUG>System.out.println("Restored segment "+i+" filter for "+parent+" : k="+cachedSegFilters[i].getK()+" size = "+cachedSegFilters[i].getSizeBytes()+" bytes = "+cachedSegFilters[i].getLength()+" elements, filled: "+cachedSegFilters[i].getFilledCount());
</BUG>
}
} else {
byte[] segmentsFilterBuffer = new byte[segmentFilterSizeBytes * segments];

if(cachedSegFilters != null) {
for(int i=0;i<cachedSegFilters.length;i++) {
segmentFilters[i] = cachedSegFilters[i];
container.activate(cachedSegFilters[i], Integer.MAX_VALUE);
cachedSegFilters[i].init(container);
if(logMINOR) Logger.minor(this, "Restored segment "+i+" filter for "+parent+" : k="+cachedSegFilters[i].getK()+" size = "+cachedSegFilters[i].getSizeBytes()+" bytes = "+cachedSegFilters[i].getLength()+" elements, filled: "+cachedSegFilters[i].getFilledCount());
}
} else {
byte[] segmentsFilterBuffer = new byte[segmentFilterSizeBytes * segments];
