Example #1
0
 private static void logUnaryProvenance(String name, DSHandle v, DSHandle r)
     throws ExecutionException {
   if (PROVENANCE_ENABLED) {
     String thread = SwiftFunction.getThreadPrefix();
     String vid = v.getIdentifier();
     String rid = r.getIdentifier();
     provenanceLogger.info(
         "UNARYOPERATOR thread="
             + thread
             + " operator="
             + name
             + " operand="
             + vid
             + " result="
             + rid);
   }
 }
Example #2
0
 private static void logBinaryProvenance(String name, DSHandle v1, DSHandle v2, DSHandle result)
     throws ExecutionException {
   if (PROVENANCE_ENABLED) {
     String thread = SwiftFunction.getThreadPrefix();
     String lhsid = v1.getIdentifier();
     String rhsid = v2.getIdentifier();
     String rid = result.getIdentifier();
     provenanceLogger.info(
         "OPERATOR thread="
             + thread
             + " operator="
             + name
             + " lhs="
             + lhsid
             + " rhs="
             + rhsid
             + " result="
             + rid);
   }
 }
Example #3
0
 private String threadName(LWThread thr) throws VariableNotFoundException {
   return SwiftFunction.getThreadPrefix(thr);
 }