use of org.apache.parquet.io.OutputFile in project flink by apache.
the class ParquetWriterFactory method create.
@Override
public BulkWriter<T> create(FSDataOutputStream stream) throws IOException {
final OutputFile out = new StreamOutputFile(stream);
final ParquetWriter<T> writer = writerBuilder.createWriter(out);
return new ParquetBulkWriter<>(writer);
}
use of org.apache.parquet.io.OutputFile in project hazelcast by hazelcast.
the class SqlHadoopTest method storeParquet.
private static void storeParquet(String path) throws IOException {
OutputFile file = HadoopOutputFile.fromPath(new Path(path), cluster.getFileSystem().getConf());
FileUtil.writeParquetPayloadTo(file);
}
Aggregations