Package com.linkedin.venice.utils
Class AvroCompatibilityUtils
- java.lang.Object
-
- com.linkedin.venice.utils.AvroCompatibilityUtils
-
public class AvroCompatibilityUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AvroCompatibilityUtils()
-
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.7static int
compareSpecificData(java.lang.Object o1, java.lang.Object o2, org.apache.avro.Schema s)
Backport compare() method implementation from SpecificData in avro v1.7static java.lang.Object
getField(java.lang.Object record, java.lang.String name, int position)
Backport getField() method implementation from GenericData in avro v1.7
-
-
-
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
-
-