Пример #1
0
 @Override
 public void write(NullWritable nullWritable, OrcSerdeRow row) throws IOException {
   if (writer == null) {
     options.inspector(row.getInspector());
     writer = OrcFile.createWriter(path, options);
   }
   writer.addRow(row.getRow());
 }
Пример #2
0
 @Override
 public void write(Writable row) throws IOException {
   OrcSerdeRow serdeRow = (OrcSerdeRow) row;
   if (writer == null) {
     options.inspector(serdeRow.getInspector());
     writer = OrcFile.createWriter(path, options);
   }
   writer.addRow(serdeRow.getRow());
 }