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 void setFactory(Context context, OpExecutorFactory factory) { context.set(ARQConstants.sysOpExecutorFactory, factory); }
public static OpExecutorFactory getFactory(Context context) { return (OpExecutorFactory) context.get(ARQConstants.sysOpExecutorFactory); }
public static void setFilter(Context context, Predicate<Tuple<NodeId>> filter) { context.set(SystemTDB.symTupleFilter, filter); }