public void write(org.apache.thrift.protocol.TProtocol oprot, setMasterGoalState_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.credentials != null) { oprot.writeFieldBegin(CREDENTIALS_FIELD_DESC); struct.credentials.write(oprot); oprot.writeFieldEnd(); } if (struct.state != null) { oprot.writeFieldBegin(STATE_FIELD_DESC); oprot.writeI32(struct.state.getValue()); oprot.writeFieldEnd(); } if (struct.tinfo != null) { oprot.writeFieldBegin(TINFO_FIELD_DESC); struct.tinfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, setMasterGoalState_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTinfo()) { optionals.set(0); } if (struct.isSetCredentials()) { optionals.set(1); } if (struct.isSetState()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } if (struct.isSetState()) { oprot.writeI32(struct.state.getValue()); } }
if (struct.goalState != null) { oprot.writeFieldBegin(GOAL_STATE_FIELD_DESC); oprot.writeI32(struct.goalState.getValue()); oprot.writeFieldEnd();
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTableMap()) ? 131071 : 524287); if (isSetTableMap()) hashCode = hashCode * 8191 + tableMap.hashCode(); hashCode = hashCode * 8191 + ((isSetTServerInfo()) ? 131071 : 524287); if (isSetTServerInfo()) hashCode = hashCode * 8191 + tServerInfo.hashCode(); hashCode = hashCode * 8191 + ((isSetBadTServers()) ? 131071 : 524287); if (isSetBadTServers()) hashCode = hashCode * 8191 + badTServers.hashCode(); hashCode = hashCode * 8191 + ((isSetState()) ? 131071 : 524287); if (isSetState()) hashCode = hashCode * 8191 + state.getValue(); hashCode = hashCode * 8191 + ((isSetGoalState()) ? 131071 : 524287); if (isSetGoalState()) hashCode = hashCode * 8191 + goalState.getValue(); hashCode = hashCode * 8191 + unassignedTablets; hashCode = hashCode * 8191 + ((isSetServersShuttingDown()) ? 131071 : 524287); if (isSetServersShuttingDown()) hashCode = hashCode * 8191 + serversShuttingDown.hashCode(); hashCode = hashCode * 8191 + ((isSetDeadTabletServers()) ? 131071 : 524287); if (isSetDeadTabletServers()) hashCode = hashCode * 8191 + deadTabletServers.hashCode(); hashCode = hashCode * 8191 + ((isSetBulkImports()) ? 131071 : 524287); if (isSetBulkImports()) hashCode = hashCode * 8191 + bulkImports.hashCode(); return hashCode; }
oprot.writeI32(struct.goalState.getValue());
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTinfo()) ? 131071 : 524287); if (isSetTinfo()) hashCode = hashCode * 8191 + tinfo.hashCode(); hashCode = hashCode * 8191 + ((isSetCredentials()) ? 131071 : 524287); if (isSetCredentials()) hashCode = hashCode * 8191 + credentials.hashCode(); hashCode = hashCode * 8191 + ((isSetState()) ? 131071 : 524287); if (isSetState()) hashCode = hashCode * 8191 + state.getValue(); return hashCode; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tinfo = true && (isSetTinfo()); list.add(present_tinfo); if (present_tinfo) list.add(tinfo); boolean present_credentials = true && (isSetCredentials()); list.add(present_credentials); if (present_credentials) list.add(credentials); boolean present_state = true && (isSetState()); list.add(present_state); if (present_state) list.add(state.getValue()); return list.hashCode(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, setMasterGoalState_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.credentials != null) { oprot.writeFieldBegin(CREDENTIALS_FIELD_DESC); struct.credentials.write(oprot); oprot.writeFieldEnd(); } if (struct.state != null) { oprot.writeFieldBegin(STATE_FIELD_DESC); oprot.writeI32(struct.state.getValue()); oprot.writeFieldEnd(); } if (struct.tinfo != null) { oprot.writeFieldBegin(TINFO_FIELD_DESC); struct.tinfo.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
list.add(present_goalState); if (present_goalState) list.add(goalState.getValue());
@Override public void write(org.apache.thrift.protocol.TProtocol prot, setMasterGoalState_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTinfo()) { optionals.set(0); } if (struct.isSetCredentials()) { optionals.set(1); } if (struct.isSetState()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } if (struct.isSetState()) { oprot.writeI32(struct.state.getValue()); } }
if (struct.goalState != null) { oprot.writeFieldBegin(GOAL_STATE_FIELD_DESC); oprot.writeI32(struct.goalState.getValue()); oprot.writeFieldEnd();
oprot.writeI32(struct.goalState.getValue());