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); } }
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); } }