Class AvroCompatibilityUtils

java.lang.Object
com.linkedin.venice.utils.AvroCompatibilityUtils

public class AvroCompatibilityUtils extends Object
  • Constructor Details

    • AvroCompatibilityUtils

      public AvroCompatibilityUtils()
  • Method Details

    • compare

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

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

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

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