private ObjectInspector[] createOI(int length) {
    ObjectInspector[] objectInspectors = new ObjectInspector[length];
    for (int i = 0; i < length; ++i) {
      objectInspectors[i] = PrimitiveObjectInspectorFactory.javaIntObjectInspector;
    }
    return objectInspectors;
  }
TestObjectInspectorUtils.compare method.
int compare(Object[] o1, ObjectInspector[] oi1, Object[] o2,
      ObjectInspector[] oi2, boolean[] columnSortOrderIsDesc, NullValueOption[] nullSortOrder)
serde/src/test/org/apache/hadoop/hive/serde2/objectinspector/TestObjectInspectorUtilsCompare.java