private HCatRecord[] getHCatRecords() {

    List<Object> rec_1 = new ArrayList<Object>(8);
    rec_1.add(Byte.valueOf("123"));
    rec_1.add(Short.valueOf("456"));
    rec_1.add(Integer.valueOf(789));
    rec_1.add(Long.valueOf(1000L));
    rec_1.add(Float.valueOf(5.3F));
    rec_1.add(Double.valueOf(5.3D));
    rec_1.add(Boolean.TRUE);
    rec_1.add("hcat and hadoop");
    rec_1.add(null);
    rec_1.add("null");

    HCatRecord tup_1 = new DefaultHCatRecord(rec_1);

    List<Object> rec_2 = new ArrayList<Object>(8);
    rec_2.add(Byte.valueOf("123"));
    rec_2.add(Short.valueOf("456"));
    rec_2.add(Integer.valueOf(789));
    rec_2.add(Long.valueOf(1000L));
    rec_2.add(Float.valueOf(5.3F));
    rec_2.add(Double.valueOf(5.3D));
    rec_2.add(Boolean.TRUE);
    rec_2.add("hcat and hadoop");
    rec_2.add(null);
    rec_2.add("null");
    HCatRecord tup_2 = new DefaultHCatRecord(rec_2);

    List<Object> rec_3 = new ArrayList<Object>(10);
    rec_3.add(Byte.valueOf("123"));
    rec_3.add(Short.valueOf("456"));
    rec_3.add(Integer.valueOf(789));
    rec_3.add(Long.valueOf(1000L));
    rec_3.add(Double.valueOf(5.3D));
    rec_3.add("hcat and hadoop");
    rec_3.add(null);
    List<Integer> innerList = new ArrayList<Integer>();
    innerList.add(314);
    innerList.add(007);
    rec_3.add(innerList);
    Map<Short, String> map = new HashMap<Short, String>(3);
    map.put(Short.valueOf("2"), "hcat is cool");
    map.put(Short.valueOf("3"), "is it?");
    map.put(Short.valueOf("4"), "or is it not?");
    rec_3.add(map);

    HCatRecord tup_3 = new DefaultHCatRecord(rec_3);

    List<Object> rec_4 = new ArrayList<Object>(8);
    rec_4.add(Byte.valueOf("123"));
    rec_4.add(Short.valueOf("456"));
    rec_4.add(Integer.valueOf(789));
    rec_4.add(Long.valueOf(1000L));
    rec_4.add(Double.valueOf(5.3D));
    rec_4.add("hcat and hadoop");
    rec_4.add(null);
    rec_4.add("null");

    Map<Short, String> map2 = new HashMap<Short, String>(3);
    map2.put(Short.valueOf("2"), "hcat is cool");
    map2.put(Short.valueOf("3"), "is it?");
    map2.put(Short.valueOf("4"), "or is it not?");
    rec_4.add(map2);
    List<Integer> innerList2 = new ArrayList<Integer>();
    innerList2.add(314);
    innerList2.add(007);
    rec_4.add(innerList2);
    HCatRecord tup_4 = new DefaultHCatRecord(rec_4);


    List<Object> rec_5 = new ArrayList<Object>(3);
    rec_5.add(getByteArray());
    rec_5.add(getStruct());
    rec_5.add(getList());
    HCatRecord tup_5 = new DefaultHCatRecord(rec_5);


    List<Object> rec_6 = new ArrayList<Object>(3);
    rec_6.add(getByteArray());
    rec_6.add(getStruct());
    rec_6.add(getList());
    HCatRecord tup_6 = new DefaultHCatRecord(rec_6);

    return new HCatRecord[]{tup_1, tup_2, tup_3, tup_4, tup_5, tup_6, getHCat13TypesRecord(),
            getHCat13TypesComplexRecord()};
  }
Test type specific get/set methods on HCatRecord types added in Hive 13
@throws HCatException
hcatalog/core/src/test/java/org/apache/hive/hcatalog/data/TestDefaultHCatRecord.java