Пример #1
0
  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);
    }
  }
Пример #2
0
 public static void setFactory(Context context, OpExecutorFactory factory) {
   context.set(ARQConstants.sysOpExecutorFactory, factory);
 }
Пример #3
0
 public static OpExecutorFactory getFactory(Context context) {
   return (OpExecutorFactory) context.get(ARQConstants.sysOpExecutorFactory);
 }
Пример #4
0
 public static void setFilter(Context context, Predicate<Tuple<NodeId>> filter) {
   context.set(SystemTDB.symTupleFilter, filter);
 }