예제 #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());
 }