public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == TType.STOP) { break; } switch (field.id) { case 1: // INTERPRETATIONS if (field.type == TType.LIST) { { TList _list44 = iprot.readListBegin(); this.interpretations = new ArrayList<GeocodeInterpretation>(_list44.size); for (int _i45 = 0; _i45 < _list44.size; ++_i45) { GeocodeInterpretation _elem46; _elem46 = new GeocodeInterpretation(); _elem46.read(iprot); this.interpretations.add(_elem46); } iprot.readListEnd(); } } else { TProtocolUtil.skip(iprot, field.type); } break; case 2: // DEBUG_LINES if (field.type == TType.LIST) { { TList _list47 = iprot.readListBegin(); this.debugLines = new ArrayList<String>(_list47.size); for (int _i48 = 0; _i48 < _list47.size; ++_i48) { String _elem49; _elem49 = iprot.readString(); this.debugLines.add(_elem49); } iprot.readListEnd(); } } else { TProtocolUtil.skip(iprot, field.type); } break; case 3: // REQUEST_WKT_GEOMETRY if (field.type == TType.STRING) { this.requestWktGeometry = iprot.readString(); } else { TProtocolUtil.skip(iprot, field.type); } break; default: TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); }
public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == TType.STOP) { break; } switch (field.id) { case 1: // VALUES if (field.type == TType.LIST) { { TList _list0 = iprot.readListBegin(); this.values = new ArrayList<ByteBuffer>(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { ByteBuffer _elem2; _elem2 = iprot.readBinary(); this.values.add(_elem2); } iprot.readListEnd(); } } else { TProtocolUtil.skip(iprot, field.type); } break; default: TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); }
public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == TType.STOP) { break; } switch (field.id) { case 1: // START_TOKEN if (field.type == TType.STRING) { this.start_token = iprot.readString(); } else { TProtocolUtil.skip(iprot, field.type); } break; case 2: // END_TOKEN if (field.type == TType.STRING) { this.end_token = iprot.readString(); } else { TProtocolUtil.skip(iprot, field.type); } break; case 3: // ENDPOINTS if (field.type == TType.LIST) { { TList _list16 = iprot.readListBegin(); this.endpoints = new ArrayList<String>(_list16.size); for (int _i17 = 0; _i17 < _list16.size; ++_i17) { String _elem18; _elem18 = iprot.readString(); this.endpoints.add(_elem18); } iprot.readListEnd(); } } else { TProtocolUtil.skip(iprot, field.type); } break; default: TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); }
public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == TType.STOP) { break; } switch (field.id) { case 1: // NAME if (field.type == TType.STRING) { this.name = iprot.readBinary(); } else { TProtocolUtil.skip(iprot, field.type); } break; case 2: // COLUMNS if (field.type == TType.LIST) { { TList _list0 = iprot.readListBegin(); this.columns = new ArrayList<Column>(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { Column _elem2; _elem2 = new Column(); _elem2.read(iprot); this.columns.add(_elem2); } iprot.readListEnd(); } } else { TProtocolUtil.skip(iprot, field.type); } break; default: TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method validate(); }
public void read(TProtocol iprot) throws TException { TField field; iprot.readStructBegin(); while (true) { field = iprot.readFieldBegin(); if (field.type == TType.STOP) { break; } switch (field.id) { case 1: // OBJECT_TYPE if (field.type == TType.I32) { this.objectType = HiveObjectType.findByValue(iprot.readI32()); } else { TProtocolUtil.skip(iprot, field.type); } break; case 2: // DB_NAME if (field.type == TType.STRING) { this.dbName = iprot.readString(); } else { TProtocolUtil.skip(iprot, field.type); } break; case 3: // OBJECT_NAME if (field.type == TType.STRING) { this.objectName = iprot.readString(); } else { TProtocolUtil.skip(iprot, field.type); } break; case 4: // PART_VALUES if (field.type == TType.LIST) { { TList _list4 = iprot.readListBegin(); this.partValues = new ArrayList<String>(_list4.size); for (int _i5 = 0; _i5 < _list4.size; ++_i5) { String _elem6; _elem6 = iprot.readString(); this.partValues.add(_elem6); } iprot.readListEnd(); } } else { TProtocolUtil.skip(iprot, field.type); } break; case 5: // COLUMN_NAME if (field.type == TType.STRING) { this.columnName = iprot.readString(); } else { TProtocolUtil.skip(iprot, field.type); } break; default: TProtocolUtil.skip(iprot, field.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); validate(); }