@Override
  @SuppressWarnings("unchecked")
  public Object resize(final Object list, final int newSize) {
    final List<Object> l = (List<Object>) list;
    final int deltaSize = newSize - l.size();
    if (deltaSize > 0) {
      l.addAll(Arrays.asList(new Object[deltaSize]));
    } else {
      int size = l.size();
      l.subList(size + deltaSize, size).clear();
    }
    return list;
  }
The ParquetHiveArrayInspector will inspect an ArrayWritable, considering it as an Hive array.<br>
It can also inspect a List if Hive decides to inspect the result of an inspection.
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/serde/ParquetHiveArrayInspector.java