Class AvroCompatibilityUtils


  • public class AvroCompatibilityUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean compare​(java.lang.Object o1, java.lang.Object o2)
      Backport compareTo() method from SpecificRecordBase.
      static int compareGenericData​(java.lang.Object o1, java.lang.Object o2, org.apache.avro.Schema s)
      Backport compare() method implementation from GenericData in avro v1.7
      static int compareSpecificData​(java.lang.Object o1, java.lang.Object o2, org.apache.avro.Schema s)
      Backport compare() method implementation from SpecificData in avro v1.7
      static java.lang.Object getField​(java.lang.Object record, java.lang.String name, int position)
      Backport getField() method implementation from GenericData in avro v1.7
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AvroCompatibilityUtils

        public AvroCompatibilityUtils()
    • Method Detail

      • compare

        public static boolean compare​(java.lang.Object o1,
                                      java.lang.Object o2)
        Backport compareTo() method from SpecificRecordBase.
      • compareSpecificData

        public static int compareSpecificData​(java.lang.Object o1,
                                              java.lang.Object o2,
                                              org.apache.avro.Schema s)
        Backport compare() method implementation from SpecificData in avro v1.7
      • compareGenericData

        public static int compareGenericData​(java.lang.Object o1,
                                             java.lang.Object o2,
                                             org.apache.avro.Schema s)
        Backport compare() method implementation from GenericData in avro v1.7
      • getField

        public static java.lang.Object getField​(java.lang.Object record,
                                                java.lang.String name,
                                                int position)
        Backport getField() method implementation from GenericData in avro v1.7