@Override
  public int size() {
    return soi.getAllStructFieldRefs().size();
  }
@Test
  public void testSize() throws Exception {
    HCatRecord r = new LazyHCatRecord(getHCatRecord(), getObjectInspector());
    Assert.assertEquals(4, r.size());
  }