final String fileName = FileUtils.getFileName(docFile);
if(USE_MMAP) {
return new MemoryMappedDocumentTable(col, fileName, null, false);
} else {
if(filesize < FIVE_HUNDREDS_MEGA_BYTES) {
return new DocumentTable(col, fileName);
} else if(filesize < TWO_GIGA_BYTES) {
return new DocumentTable.PersistentDocumentTable(col, fileName);
} else {
return new BigDocumentTable.PersistentBigDocumentTable(col, fileName);
}