/// <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); } }
static BytesWritable() { // register this comparator WritableComparator.Define(typeof(BytesWritable), new Comparator()); }
static IntWritable() { // register this comparator WritableComparator.Define(typeof(IntWritable), new IntWritable.Comparator()); }
static UTF8() { // register this comparator WritableComparator.Define(typeof(UTF8), new UTF8.Comparator()); }
static MyWritable() { WritableComparator.Define(typeof(TestComparators.MyWritable), new TestComparators.MyCmp ()); }
static CompositeIntReverseGroupFn() { WritableComparator.Define(typeof(TestComparators.CompositeIntReverseGroupFn), new IntWritable.Comparator()); }
static DecreasingIntComparator() { // register this comparator WritableComparator.Define(typeof(TestComparators.DecreasingIntComparator), new IntWritable.Comparator ()); }
static IntPair() { // register this comparator WritableComparator.Define(typeof(SecondarySort.IntPair), new SecondarySort.IntPair.Comparator ()); }
static FloatWritable() { // register this comparator WritableComparator.Define(typeof(FloatWritable), new FloatWritable.Comparator()); }
static DoubleWritable() { // register this comparator WritableComparator.Define(typeof(DoubleWritable), new Comparator()); }
static Text() { // register this comparator WritableComparator.Define(typeof(Text), new Text.Comparator( )); }
static BooleanWritable() { WritableComparator.Define(typeof(BooleanWritable), new Comparator()); }