@Override
    public Pojo2 decode(PositionedByteRange src) {
      Object[] ret = new Object[4];
      ret[0] = byteField1.decode(src);
      ret[1] = byteField2.decode(src);
      ret[2] = stringField.decode(src);
      ret[3] = byteField3.decode(src);
      return new Pojo2(ret);
    }
The {@link Struct} equivalent of this type.
hbase-common/src/test/java/org/apache/hadoop/hbase/types/TestStruct.java