@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetStartKey()) ? 131071 : 524287); if (isSetStartKey()) hashCode = hashCode * 8191 + startKey.hashCode(); hashCode = hashCode * 8191 + ((isSetEndKey()) ? 131071 : 524287); if (isSetEndKey()) hashCode = hashCode * 8191 + endKey.hashCode(); hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(id); hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); if (isSetName()) hashCode = hashCode * 8191 + name.hashCode(); hashCode = hashCode * 8191 + (int) (version); hashCode = hashCode * 8191 + ((isSetServerName()) ? 131071 : 524287); if (isSetServerName()) hashCode = hashCode * 8191 + serverName.hashCode(); hashCode = hashCode * 8191 + port; return hashCode; }
boolean this_present_endKey = true && this.isSetEndKey(); boolean that_present_endKey = true && that.isSetEndKey(); if (this_present_endKey || that_present_endKey) { if (!(this_present_endKey && that_present_endKey))
lastComparison = java.lang.Boolean.valueOf(isSetEndKey()).compareTo(other.isSetEndKey()); if (lastComparison != 0) { return lastComparison; if (isSetEndKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, other.endKey); 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 START_KEY: return isSetStartKey(); case END_KEY: return isSetEndKey(); case ID: return isSetId(); case NAME: return isSetName(); case VERSION: return isSetVersion(); case SERVER_NAME: return isSetServerName(); case PORT: return isSetPort(); } throw new java.lang.IllegalStateException(); }
optionals.set(0); if (struct.isSetEndKey()) { optionals.set(1); oprot.writeBinary(struct.startKey); if (struct.isSetEndKey()) { oprot.writeBinary(struct.endKey);
/** * Performs a deep copy on <i>other</i>. */ public TRegionInfo(TRegionInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStartKey()) { this.startKey = org.apache.thrift.TBaseHelper.copyBinary(other.startKey); } if (other.isSetEndKey()) { this.endKey = org.apache.thrift.TBaseHelper.copyBinary(other.endKey); } this.id = other.id; if (other.isSetName()) { this.name = org.apache.thrift.TBaseHelper.copyBinary(other.name); } this.version = other.version; if (other.isSetServerName()) { this.serverName = org.apache.thrift.TBaseHelper.copyBinary(other.serverName); } this.port = other.port; }
list.add(startKey); boolean present_endKey = true && (isSetEndKey()); list.add(present_endKey); if (present_endKey)
list.add(startKey); boolean present_endKey = true && (isSetEndKey()); list.add(present_endKey); if (present_endKey)
/** * Performs a deep copy on <i>other</i>. */ public TRegionInfo(TRegionInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStartKey()) { this.startKey = other.startKey; } if (other.isSetEndKey()) { this.endKey = other.endKey; } this.id = other.id; if (other.isSetName()) { this.name = other.name; } this.version = other.version; if (other.isSetServerName()) { this.serverName = other.serverName; } this.port = other.port; }
/** * Performs a deep copy on <i>other</i>. */ public TRegionInfo(TRegionInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStartKey()) { this.startKey = other.startKey; } if (other.isSetEndKey()) { this.endKey = other.endKey; } this.id = other.id; if (other.isSetName()) { this.name = other.name; } this.version = other.version; if (other.isSetServerName()) { this.serverName = other.serverName; } this.port = other.port; }
boolean this_present_endKey = true && this.isSetEndKey(); boolean that_present_endKey = true && that.isSetEndKey(); if (this_present_endKey || that_present_endKey) { if (!(this_present_endKey && that_present_endKey))
lastComparison = Boolean.valueOf(isSetEndKey()).compareTo(other.isSetEndKey()); if (lastComparison != 0) { return lastComparison; if (isSetEndKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, other.endKey); if (lastComparison != 0) {
boolean this_present_endKey = true && this.isSetEndKey(); boolean that_present_endKey = true && that.isSetEndKey(); if (this_present_endKey || that_present_endKey) { if (!(this_present_endKey && that_present_endKey))
lastComparison = Boolean.valueOf(isSetEndKey()).compareTo(other.isSetEndKey()); if (lastComparison != 0) { return lastComparison; if (isSetEndKey()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endKey, other.endKey); 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 IllegalArgumentException(); } switch (field) { case START_KEY: return isSetStartKey(); case END_KEY: return isSetEndKey(); case ID: return isSetId(); case NAME: return isSetName(); case VERSION: return isSetVersion(); case SERVER_NAME: return isSetServerName(); case PORT: return isSetPort(); } throw new IllegalStateException(); }
/** 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 START_KEY: return isSetStartKey(); case END_KEY: return isSetEndKey(); case ID: return isSetId(); case NAME: return isSetName(); case VERSION: return isSetVersion(); case SERVER_NAME: return isSetServerName(); case PORT: return isSetPort(); } throw new IllegalStateException(); }
optionals.set(0); if (struct.isSetEndKey()) { optionals.set(1); oprot.writeBinary(struct.startKey); if (struct.isSetEndKey()) { oprot.writeBinary(struct.endKey);
optionals.set(0); if (struct.isSetEndKey()) { optionals.set(1); oprot.writeBinary(struct.startKey); if (struct.isSetEndKey()) { oprot.writeBinary(struct.endKey);
/** * Performs a deep copy on <i>other</i>. */ public TRegionInfo(TRegionInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStartKey()) { this.startKey = other.startKey; } if (other.isSetEndKey()) { this.endKey = other.endKey; } this.id = other.id; if (other.isSetName()) { this.name = other.name; } this.version = other.version; if (other.isSetServerName()) { this.serverName = other.serverName; } this.port = other.port; }
/** * Performs a deep copy on <i>other</i>. */ public TRegionInfo(TRegionInfo other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetStartKey()) { this.startKey = other.startKey; } if (other.isSetEndKey()) { this.endKey = other.endKey; } this.id = other.id; if (other.isSetName()) { this.name = other.name; } this.version = other.version; if (other.isSetServerName()) { this.serverName = other.serverName; } this.port = other.port; }