for (Map.Entry<ConnectorColumnHandle, File> entry : columnFileHandle.getFiles().entrySet()) {
File file = entry.getValue();
ConnectorColumnHandle columnHandle = entry.getKey();
if (file.length() > 0) {
Slice slice = mappedFileCache.getUnchecked(file.getAbsoluteFile());
checkState(file.length() == slice.length(), "File %s, length %s was mapped to Slice length %s", file.getAbsolutePath(), file.length(), slice.length());
// Compute optimal encoding from stats
BlocksFileReader blocks = BlocksFileReader.readBlocks(blockEncodingSerde, slice);
BlocksFileStats stats = blocks.getStats();
boolean rleEncode = stats.getAvgRunLength() > RUN_LENGTH_AVERAGE_CUTOFF;
boolean dicEncode = stats.getUniqueCount() < DICTIONARY_CARDINALITY_CUTOFF;