@Override
  public void close() throws IOException {
    if (!closed) {
      this.closed = true;
      flushRowGroup(true);
      writeStore.close();
      if (writer != null) {
        writer.end(metadata);
      }
      if (compressor != null) {
        compressor.release();
      }
    }
  }
Returns the approximate length of the output file produced by this writer.

<p>Prior to calling {@link AdaptHiveParquetWriter#close}, the result is approximate. After
calling close, the length is exact.

@return the approximate length of the output file produced by this writer or the exact length
    if this writer is closed.
amoro-format-mixed/amoro-mixed-hive/src/main/java/org/apache/iceberg/parquet/AdaptHiveParquetWriter.java