public void read(org.apache.thrift.protocol.TProtocol iprot, TI16Column struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list70 = iprot.readListBegin(); struct.values = new ArrayList<Short>(_list70.size); for (int _i71 = 0; _i71 < _list70.size; ++_i71) { short _elem72; _elem72 = iprot.readI16(); struct.values.add(_elem72); } iprot.readListEnd(); } struct.setValuesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // NULLS if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.nulls = iprot.readBinary(); struct.setNullsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TI16Column struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list75 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I16, iprot.readI32()); struct.values = new ArrayList<Short>(_list75.size); for (int _i76 = 0; _i76 < _list75.size; ++_i76) { short _elem77; _elem77 = iprot.readI16(); struct.values.add(_elem77); } } struct.setValuesIsSet(true); struct.nulls = iprot.readBinary(); struct.setNullsIsSet(true); }