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