@Override
  public List<Object> getStructFieldsDataAsList(Object data) {
    if (data == null) {
      return null;
    }

    List<Object> result = new ArrayList<Object>(fields.size());

    for (int i = 0; i < fields.size(); i++) {
      result.add(getStructFieldData(data, fields.get(i)));
    }

    return result;
  }
Set the {@link AvroSchemaRetriever} for the {@link AvroLazyObjectInspector} to the given class

@param schemaRetriever the schema retriever class to be set
serde/src/java/org/apache/hadoop/hive/serde2/avro/AvroLazyObjectInspector.java