示例#1
0
 public void map(Void key, Activity val, Collector<String, ASObject> context) {
   String ot = val.getActor().getDisplayName();
   context.collect(ot != null ? ot : "", val.getActor());
 }
示例#2
0
 private Activity getActivity(String name, int n) {
   return Activity.makeActivity()
       .actor(PersonObject.makePerson(name))
       .id(String.format("urn:%s:%s", name, n))
       .get();
 }