private ObjectInspector createObjectInspector() throws SerDeException {
    List<ObjectInspector> columnOIs = new ArrayList<ObjectInspector>(columnNames.size());

    // At this point we've verified the types are correct.
    for(int i = 0; i < columnNames.size(); i++) {
      columnOIs.add(i, createObjectInspectorWorker(columnTypes.get(i)));
    }
    return ObjectInspectorFactory.getStandardStructObjectInspector(columnNames, columnOIs, columnComments);
  }
An AvroObjectInspectorGenerator takes an Avro schema and creates the three
data structures Hive needs to work with Avro-encoded data:
  * A list of the schema field names
  * A list of those fields equivalent types in Hive
  * An ObjectInspector capable of working with an instance of that datum.
serde/src/java/org/apache/hadoop/hive/serde2/avro/AvroObjectInspectorGenerator.java