public static Predicate<Tuple<NodeId>> getFilter(Context context) { Object x = context.get(SystemTDB.symTupleFilter); try { @SuppressWarnings("unchecked") Predicate<Tuple<NodeId>> f = (Predicate<Tuple<NodeId>>) x; return f; } catch (ClassCastException ex) { throw new TDBException("Not a Filter<Tuple<NodeId>>:" + x, ex); } }
public static OpExecutorFactory getFactory(Context context) { return (OpExecutorFactory) context.get(ARQConstants.sysOpExecutorFactory); }