private Writer newWriter(Path path) {
      return mmapIO ? new WriterMmap(path) : new WriterBuffered(path, 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