boolean estimate = fileCount > SAMPLE_SET * 10;
pw.println("Average " + type + " size is " + (size / fileCount) + " bytes");
Stopwatch sw = new Stopwatch("Estimated remaining load time");
for ( int i = 0; i < fileCount; i++ ) {
if ( estimate && i == 0 )
sw.start();
File f = (File)files.get(i);
if ( binary )
importBin(col, f, f.getName(), estimate);
else
importDoc(col, f, f.getName(), estimate);