@Override public void clear() { this.row = null; this.columns = null; setTimestampIsSet(false); this.timestamp = 0; this.timeRange = null; setMaxVersionsIsSet(false); this.maxVersions = 0; }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TGet struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.row = iprot.readBinary(); struct.setRowIsSet(true); BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList<TColumn>(_list13.size); for (int _i14 = 0; _i14 < _list13.size; ++_i14) { TColumn _elem15; // optional _elem15 = new TColumn(); _elem15.read(iprot); struct.columns.add(_elem15); } } struct.setColumnsIsSet(true); } if (incoming.get(1)) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } if (incoming.get(2)) { struct.timeRange = new TTimeRange(); struct.timeRange.read(iprot); struct.setTimeRangeIsSet(true); } if (incoming.get(3)) { struct.maxVersions = iprot.readI32(); struct.setMaxVersionsIsSet(true); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, TGet 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: // ROW if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.row = iprot.readBinary(); struct.setRowIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // COLUMNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.columns = new ArrayList<TColumn>(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { TColumn _elem10; // optional _elem10 = new TColumn(); _elem10.read(iprot); struct.columns.add(_elem10); } iprot.readListEnd(); } struct.setColumnsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // TIMESTAMP if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.timestamp = iprot.readI64(); struct.setTimestampIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 4: // TIME_RANGE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.timeRange = new TTimeRange(); struct.timeRange.read(iprot); struct.setTimeRangeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // MAX_VERSIONS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.maxVersions = iprot.readI32(); struct.setMaxVersionsIsSet(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(); }
public TGet setMaxVersions(int maxVersions) { this.maxVersions = maxVersions; setMaxVersionsIsSet(true); return this; }