Example #1
0
 /// <summary>
 /// Register an optimized comparator for a
 /// <see cref="Record"/>
 /// implementation.
 /// </summary>
 /// <param name="c">record classs for which a raw comparator is provided</param>
 /// <param name="comparator">Raw comparator instance for class c</param>
 public static void Define(Type c, Org.Apache.Hadoop.Record.RecordComparator comparator
                           )
 {
     lock (typeof(RecordComparator))
     {
         WritableComparator.Define(c, comparator);
     }
 }
Example #2
0
 static BytesWritable()
 {
     // register this comparator
     WritableComparator.Define(typeof(BytesWritable), new Comparator());
 }
Example #3
0
 static IntWritable()
 {
     // register this comparator
     WritableComparator.Define(typeof(IntWritable), new IntWritable.Comparator());
 }
Example #4
0
 static UTF8()
 {
     // register this comparator
     WritableComparator.Define(typeof(UTF8), new UTF8.Comparator());
 }
Example #5
0
 static MyWritable()
 {
     WritableComparator.Define(typeof(TestComparators.MyWritable), new TestComparators.MyCmp
                                   ());
 }
Example #6
0
 static CompositeIntReverseGroupFn()
 {
     WritableComparator.Define(typeof(TestComparators.CompositeIntReverseGroupFn), new
                               IntWritable.Comparator());
 }
Example #7
0
 static DecreasingIntComparator()
 {
     // register this comparator
     WritableComparator.Define(typeof(TestComparators.DecreasingIntComparator), new IntWritable.Comparator
                                   ());
 }
Example #8
0
 static IntPair()
 {
     // register this comparator
     WritableComparator.Define(typeof(SecondarySort.IntPair), new SecondarySort.IntPair.Comparator
                                   ());
 }
Example #9
0
 static FloatWritable()
 {
     // register this comparator
     WritableComparator.Define(typeof(FloatWritable), new FloatWritable.Comparator());
 }
Example #10
0
 static DoubleWritable()
 {
     // register this comparator
     WritableComparator.Define(typeof(DoubleWritable), new Comparator());
 }
Example #11
0
 static Text()
 {
     // register this comparator
     WritableComparator.Define(typeof(Text), new Text.Comparator(
                                   ));
 }
Example #12
0
 static BooleanWritable()
 {
     WritableComparator.Define(typeof(BooleanWritable), new Comparator());
 }