public DPSegment done() throws IOException {
        return segmentGen.gen();
    }
TODO handle the case when row number is larger then {@link StorageSegment#MAX_ROW_COUNT}.
indexr-server/src/main/java/io/indexr/tool/CSVSegmentLoader.java