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