@Override protected void closeOp(boolean abort) throws HiveException { conf.getGenericUDTF().close(); super.closeOp(abort); } }
@Override protected void closeOp(boolean abort) throws HiveException { conf.getGenericUDTF().close(); super.closeOp(abort); } }
@Override protected void closeOp(boolean abort) throws HiveException { conf.getGenericUDTF().close(); } }
@Override protected void closeOp(boolean abort) throws HiveException { conf.getGenericUDTF().close(); } }
@Override public Object exec(Tuple input) throws IOException { if (!inited) { udtf.configure(instantiateMapredContext()); schemaInfo.init(getInputSchema(), udtf, constantsInfo); inited = true; } if (collector == null) { collector = new HiveUDTFCollector(); udtf.setCollector(collector); } else { collector.init(); } try { if (!endOfAllInput) { udtf.process(input.getAll().toArray()); } else { udtf.close(); } } catch (Exception e) { throw new IOException(e); } return collector.getBag(); }