org.apache.parquet.hadoop.ParquetRecordWriter Java Examples
The following examples show how to use
org.apache.parquet.hadoop.ParquetRecordWriter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeprecatedParquetOutputFormat.java From parquet-mr with Apache License 2.0 | 5 votes |
public RecordWriterWrapper(ParquetOutputFormat<V> realOutputFormat, FileSystem fs, JobConf conf, String name, Progressable progress) throws IOException { CompressionCodecName codec = getCodec(conf); String extension = codec.getExtension() + ".parquet"; Path file = getDefaultWorkFile(conf, name, extension); try { realWriter = (ParquetRecordWriter<V>) realOutputFormat.getRecordWriter(conf, file, codec); } catch (InterruptedException e) { Thread.interrupted(); throw new IOException(e); } }
Example #2
Source File: ParquetAsJsonOutputFormat.java From iow-hadoop-streaming with Apache License 2.0 | 5 votes |
@Override protected RecordWriter<Text, Text> createRecordWriter(ParquetRecordWriter<SimpleGroup> w, FileSystem fs, JobConf job, String name, Progressable p) throws IOException { return new JsonRecordWriterWrapper(w, fs, job, name, p); }
Example #3
Source File: ParquetAsTextOutputFormat.java From iow-hadoop-streaming with Apache License 2.0 | 4 votes |
protected RecordWriter<Text, Text> createRecordWriter(ParquetRecordWriter<SimpleGroup> w, FileSystem fs, JobConf job, String name, Progressable p) throws IOException { return new TextRecordWriterWrapper(w, fs, job, name, p); }
Example #4
Source File: PentahoParquetRecordWriter.java From pentaho-hadoop-shims with Apache License 2.0 | 4 votes |
public PentahoParquetRecordWriter( ParquetRecordWriter<RowMetaAndData> recordWriter, TaskAttemptContext taskAttemptContext ) { this.nativeParquetRecordWriter = recordWriter; this.taskAttemptContext = taskAttemptContext; }
Example #5
Source File: JsonRecordWriterWrapper.java From iow-hadoop-streaming with Apache License 2.0 | 3 votes |
JsonRecordWriterWrapper(ParquetRecordWriter<SimpleGroup> w, FileSystem fs, JobConf conf, String name, Progressable progress) throws IOException { super(w,fs,conf,name,progress); mapper = new ObjectMapper(); }