@Override
  public void close() throws IOException {
    this.reader.close();
  }
Rewrite an old file to the latest version

@param resourceToBeRewritten the tsfile which to be rewrite
@param rewrittenResources the rewritten files
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/TsFileSplitByPartitionTool.java