@Override
    public int encodedLength(Pojo2 val) {
      return byteField1.encodedLength(val.byteField1Asc)
        + byteField2.encodedLength(val.byteField2Dsc)
        + stringField.encodedLength(val.stringFieldDsc)
        + byteField3.encodedLength(val.byteField3Dsc);
    }
The {@link Struct} equivalent of this type.
hbase-common/src/test/java/org/apache/hadoop/hbase/types/TestStruct.java