Exemplo n.º 1
0
 /** Test that comparator is defined. */
 public static void testGetComparator() throws Exception {
   assert (WritableComparator.get(Frob.class) instanceof FrobComparator);
 }
Exemplo n.º 2
0
 static { // register this comparator
   WritableComparator.define(NullWritable.class, new Comparator());
 }
Exemplo n.º 3
0
 static { // register default comparator
   WritableComparator.define(Frob.class, new FrobComparator());
 }