public boolean hasSpilledData() {
    return fileIndex != 0;
  }
todo: directly serialize the sorted line instead of copy into a new tsBlock.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/sort/DiskSpiller.java