private Reader newReader() {
      return mmapIO ? new ReaderMmap(path, itemCount) : new ReaderBuffered(path, itemCount, compress);
    }
An output segment that can be sorted with a fixed amount of RAM.
planetiler-core/src/main/java/com/onthegomap/planetiler/collection/ExternalMergeSort.java