lastComparison = java.lang.Boolean.valueOf(isSetForce()).compareTo(other.isSetForce()); if (lastComparison != 0) { return lastComparison; if (isSetForce()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.force, other.force); 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(isSetForce()).compareTo(other.isSetForce()); if (lastComparison != 0) { return lastComparison; if (isSetForce()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.force, other.force); if (lastComparison != 0) {
@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); } }
/** 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(); }