public static void closeFunction(Function function) throws Exception{ if (function instanceof RichFunction) { RichFunction richFunction = (RichFunction) function; richFunction.close(); } }
@Override public void close() throws Exception { if (this.fun instanceof RichFunction) { try { ((RichFunction) this.fun).close(); } catch (PyException pe) { throw createAndLogException(pe); } } }
@Override public void close() throws Exception { if (this.fun instanceof RichFunction) { try { ((RichFunction) this.fun).close(); } catch (PyException pe) { throw AbstractPythonUDF.createAndLogException(pe, LOG); } } }
if (producer != null) { try { producer.close();
public static void closeFunction(Function function) throws Exception{ if (function instanceof RichFunction) { RichFunction richFunction = (RichFunction) function; richFunction.close(); } }
public static void closeFunction(Function function) throws Exception{ if (function instanceof RichFunction) { RichFunction richFunction = (RichFunction) function; richFunction.close(); } }
@Override public void close() throws Exception { super.close(); for (FilterFunction<? super T> component : components) { if (component instanceof RichFunction) { ((RichFunction) component).close(); } } } }
@Override public void close() throws Exception { super.close(); for (FilterFunction<? super T> component : components) { if (component instanceof RichFunction) { ((RichFunction) component).close(); } } } }