totally rewritten a parquet outputformat class