Example #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);
    }
  }
Example #2
0
 public static OpExecutorFactory getFactory(Context context) {
   return (OpExecutorFactory) context.get(ARQConstants.sysOpExecutorFactory);
 }