/** * Sets the SearchArgument predicate pushdown in the configuration */ public static void setSearchArgument(Configuration conf, SearchArgument searchArgument) { if (searchArgument != null) { setSearchArgumentKryo(conf, searchArgument.toKryo()); } }
@Override public void setPushdownPredicate(Expression expr) throws IOException { SearchArgument sArg = getSearchArgument(expr); if (sArg != null) { log.info("Pushdown predicate expression is " + expr); log.info("Pushdown predicate SearchArgument is:\n" + sArg); Properties p = UDFContext.getUDFContext().getUDFProperties(this.getClass()); try { p.setProperty(signature + SearchArgsSuffix, sArg.toKryo()); } catch (Exception e) { throw new IOException("Cannot serialize SearchArgument: " + sArg); } } }