lastComparison = java.lang.Boolean.valueOf(isSetTabletServer()).compareTo(other.isSetTabletServer()); if (lastComparison != 0) { return lastComparison; if (isSetTabletServer()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tabletServer, other.tabletServer); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case TINFO: return isSetTinfo(); case CREDENTIALS: return isSetCredentials(); case TABLET_SERVER: return isSetTabletServer(); case FORCE: return isSetForce(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_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.isSetTabletServer()) { optionals.set(2); } if (struct.isSetForce()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } if (struct.isSetTabletServer()) { oprot.writeString(struct.tabletServer); } if (struct.isSetForce()) { oprot.writeBool(struct.force); } }
lastComparison = Boolean.valueOf(isSetTabletServer()).compareTo(other.isSetTabletServer()); if (lastComparison != 0) { return lastComparison; if (isSetTabletServer()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tabletServer, other.tabletServer); if (lastComparison != 0) {
boolean this_present_tabletServer = true && this.isSetTabletServer(); boolean that_present_tabletServer = true && that.isSetTabletServer(); if (this_present_tabletServer || that_present_tabletServer) { if (!(this_present_tabletServer && that_present_tabletServer))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, shutdownTabletServer_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.isSetTabletServer()) { optionals.set(2); } if (struct.isSetForce()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.isSetTinfo()) { struct.tinfo.write(oprot); } if (struct.isSetCredentials()) { struct.credentials.write(oprot); } if (struct.isSetTabletServer()) { oprot.writeString(struct.tabletServer); } if (struct.isSetForce()) { oprot.writeBool(struct.force); } }
@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_tabletServer = true && (isSetTabletServer()); list.add(present_tabletServer); if (present_tabletServer) list.add(tabletServer); boolean present_force = true; list.add(present_force); if (present_force) list.add(force); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TINFO: return isSetTinfo(); case CREDENTIALS: return isSetCredentials(); case TABLET_SERVER: return isSetTabletServer(); case FORCE: return isSetForce(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public shutdownTabletServer_args(shutdownTabletServer_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTinfo()) { this.tinfo = new org.apache.accumulo.core.trace.thrift.TInfo(other.tinfo); } if (other.isSetCredentials()) { this.credentials = new org.apache.accumulo.core.security.thrift.TCredentials(other.credentials); } if (other.isSetTabletServer()) { this.tabletServer = other.tabletServer; } this.force = other.force; }
boolean this_present_tabletServer = true && this.isSetTabletServer(); boolean that_present_tabletServer = true && that.isSetTabletServer(); if (this_present_tabletServer || that_present_tabletServer) { if (!(this_present_tabletServer && that_present_tabletServer))
/** * Performs a deep copy on <i>other</i>. */ public shutdownTabletServer_args(shutdownTabletServer_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetTinfo()) { this.tinfo = new org.apache.accumulo.core.trace.thrift.TInfo(other.tinfo); } if (other.isSetCredentials()) { this.credentials = new org.apache.accumulo.core.securityImpl.thrift.TCredentials(other.credentials); } if (other.isSetTabletServer()) { this.tabletServer = other.tabletServer; } this.force = other.force; }
@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 + ((isSetTabletServer()) ? 131071 : 524287); if (isSetTabletServer()) hashCode = hashCode * 8191 + tabletServer.hashCode(); hashCode = hashCode * 8191 + ((force) ? 131071 : 524287); return hashCode; }