Search in sources :

Example 1 with OutputFile

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);
}
Also used : OutputFile(org.apache.parquet.io.OutputFile)

Example 2 with OutputFile

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);
}
Also used : HadoopOutputFile(org.apache.parquet.hadoop.util.HadoopOutputFile) OutputFile(org.apache.parquet.io.OutputFile) Path(org.apache.hadoop.fs.Path)

Aggregations

OutputFile (org.apache.parquet.io.OutputFile)2 Path (org.apache.hadoop.fs.Path)1 HadoopOutputFile (org.apache.parquet.hadoop.util.HadoopOutputFile)1